It's all about the answers!

Ask a question

Information about com.ibm.team.workitem.rcp.ui.workItemViewP


Antonio Matarrese (66118) | asked Sep 11 '09, 11:59 a.m.
I thought that the extension point:

com.ibm.team.workitem.rcp.ui.workItemViewPages 


concern with the displaying the work item in the client RTC.

PLUGIN.xml :


<extension
point="com.ibm.team.workitem.rcp.ui.workItemViewPages">
<page
class="com.ibm.team.workitem.ide.ui.prova.Page1"
pageId="com.ibm.team.workitem.explorer.page.initial"
targetId="com.ibm.team.workitem.ide.ui.prova.page1">
</page>
</extension>








Class file:


package com.ibm.team.workitem.ide.ui.prova;

import.....

public class Page1 extends Page {
Shell _shell;
public Page1() {
// TODO Stub di costruttore generato automaticamente
}

@Override
public void init(IPageSite pageSite) {
_shell = pageSite.getShell();
super.init(pageSite);
MessageDialog.openInformation(_shell, "", "information" );

}

....

}



I tried to write the following code, with the hope to open a dialog message when a work item is opened. It don't work.
Someone knows how to do this?

7 answers



permanent link
Patrick Streule (4.9k21) | answered Sep 14 '09, 1:53 p.m.
JAZZ DEVELOPER
com.ibm.team.workitem.rcp.ui.workItemViewPages
I tried to write the following code, with the hope to open a dialog
message when a work item is opened. It don't work.
Someone knows how to do this?

This extension point is internal and is used for the initial views of the
work item explorer.

Can you describe what your scenario is? Opening a dialog along with the
opening editor sounds unusual to me.

--
Regards,
Patrick
Jazz Work Item Team

permanent link
Antonio Matarrese (66118) | answered Sep 18 '09, 5:52 a.m.
com.ibm.team.workitem.rcp.ui.workItemViewPages
I tried to write the following code, with the hope to open a dialog
message when a work item is opened. It don't work.
Someone knows how to do this?

This extension point is internal and is used for the initial views of the
work item explorer.

Can you describe what your scenario is? Opening a dialog along with the
opening editor sounds unusual to me.

--
Regards,
Patrick
Jazz Work Item Team


I used the scenario of Dialog only to make a concrete example of the extension point that I would like to trap. I'd like to catch the moment when a user, in Rational Team Concert, opens the editor to create or view a work item, to execute a code of my plug-ins that I have alredy developed.

permanent link
Antonio Matarrese (66118) | answered Sep 23 '09, 6:31 a.m.
It 'impossible to achieve what is required?

permanent link
Antonio Matarrese (66118) | answered Sep 28 '09, 9:11 a.m.
It 'impossible to achieve what is required?

up

permanent link
Patrick Streule (4.9k21) | answered Sep 28 '09, 10:02 a.m.
JAZZ DEVELOPER
It 'impossible to achieve what is required?

We have no hooks to participate in the opening of the work item editor.

Depending on what you are actually trying to do, adding a listener to the
work item working copy registry might be an option.

If it is really about participating in the opening of a work item editor,
you could implement and configure a custom attribute presentation (which
could be hidden) that contains your code.

--
Regards,
Patrick
Jazz Work Item Team

permanent link
Antonio Matarrese (66118) | answered Oct 09 '09, 7:32 a.m.
It 'impossible to achieve what is required?

We have no hooks to participate in the opening of the work item editor.

Depending on what you are actually trying to do, adding a listener to the
work item working copy registry might be an option.

If it is really about participating in the opening of a work item editor,
you could implement and configure a custom attribute presentation (which
could be hidden) that contains your code.

--
Regards,
Patrick
Jazz Work Item Team


How i can insert my code in hidden attribute?

permanent link
Patrick Streule (4.9k21) | answered Oct 09 '09, 6:42 p.m.
JAZZ DEVELOPER
How i can insert my code in hidden attribute?

Please see:
https://jazz.net/wiki/bin/view/Main/ContributingAttributePresentations
http://jazz.net/library/article/130

--
Regards,
Patrick
Jazz Work Item Team

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.