How to add context menu in "Pending Changes" view in RTC?
Hi all,
Accepted answer
This is really basically an Eclipse extension question. You should go to the Eclipse forums and search there. I have published something here: https://rsjazz.wordpress.com/2014/02/21/adding-context-menus-for-jazz-objects-to-the-rtc-eclipse-client/ that might be useful.
Comments
@Ralph Schoon Thanks for your feedback, I did code with eclipse views and it works fine, but when I tried with RTC eclipse it does not work. I also go through your artocle mentioned above, its regarding object contribution, and I am looking for viewer contribution
The "Additions" and menu contribution should work the same. I am missing all the information to add to an existing menu in your plugin.xml. See my example. Anyway, I don't have more at the moment.
@Ralph Schoon Thanks for guiding me but I think you are unable to understand my problem statement, by using object contribution I added menu in context menu of one object, but now I want to add menu in view's context menu. You are referring org.eclise.ui.menus and my requirement is org.eclipse.ui.opoupmenus
From there you'd get:
IMenuManager menuManager = pcViewPart.getViewSite().getActionBars().getMenuManager();
and then add the desired actions to the Menu.