It's all about the answers!

Ask a question

How to progaramatically extend the context menus of a project / team area in the RTC "Team Organization" View


Krasimir Malchev (568) | asked Feb 07, 3:52 a.m.
I want to create a plugin which "copies" all users and their roles from a project / team area to another project / team area.
The idea is to add a menu item (for example, "Copy users and their roles") in the popup menu of a project / team area in the RTC "Team Organization" view and then select a the destination project / team area in the "Team Organization" view and press on a custom menu item (for example, "Paste users and their roles") of the popup menu there.

As a result all users and their roles  from the source project / team area to be assigned to the destination project / team area.

The RTC version is 6.0.6.

Is that possible and can you provide me a hint how to do it?

I have gone through the article "Adding Context Menus for Jazz Objects to the RTC Eclipse Client", but I am not able to get the project / team area tree item class using YARI as it looks like the class is internal.

I've also read about domain extension mechanisms but I am not sure how to apply it.

One answer



permanent link
Ralph Schoon (54.3k13641) | answered Feb 08, 3:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 See https://rsjazz.wordpress.com/2014/02/21/adding-context-menus-for-jazz-objects-to-the-rtc-eclipse-client/ 


This is basically an Eclipse Extension question and you should search Eclipse.org for this kind of content.


Comments
Krasimir Malchev commented Feb 08, 4:21 a.m.
I've gone through this example and tested it.
However when I tried to apply the same approach for a team/project area tree item in the "Team Organization" view and get their class with YARI, their class is something like class com.sun.proxy.$Proxy43.

One other question: How can assign a user with a role to team area programmatically?
Is there an straightforward example?

Thanks a lot for your help!

Ralph Schoon commented Feb 08, 4:31 a.m. | edited Feb 08, 4:32 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Try using Plugin Spy SHIFT+ALT+F1. 


The plain java client library snippets (included in the download) have an example. https://rsjazz.wordpress.com/2013/09/18/deploying-templates-and-creating-projects-using-the-plain-java-clients-library/ also.

Your answer


Register or to post your answer.