Extending RTC client SDK : disable "Assocate work items..." menu option
We defined for our customers a new application under the jazz team server. They should not create work-items in this application, they should only manage their files there. However, while working in RTC client, when they right-click on a change-set in the pending changes view, they see the menu option "Associate Work items..." under "Related Artifacts".
Is it possible to add client extension that will disable this menu option under certain condition ?
In other words, does RTC client SDK supply extension point which allows disabling this menu option ?
As far as I understand, this menu option is located in the plugin com.ibm.team.filesystem.rcp.ui.workitems and is handled by AssociateWorkItemToChangeSetAction.
Accepted answer
There is no way using "RTC" APIs or extension points to disable this context menu action. The only way would be to use Eclipse extensions as shown in Ralph's link (https://rsjazz.wordpress.com/2014/03/24/hiding-ui-contributions-in-the-rtc-eclipse-client/) (Note: This is a mechanism in Eclipse itself, and has nothing to do with RTC).
You can change the operation behavior of each project area such that no role can create a work item (preventing anyone from doing so), and also write a custom advisor which triggers on the creation of a 'change set to work item' link' which prevents them from doing so.
One other answer
As far as I know Eclipse is not really made to do this. It is designed to be extended. As a plugin, I think you don't have ways to suppress other plugins you cn only be selective, if you provide your own extension point.
I did some investigation and this is what I know: https://rsjazz.wordpress.com/2014/03/24/hiding-ui-contributions-in-the-rtc-eclipse-client/ .