Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes


Accepted answer

Permanent link
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.
Gidi Gal selected this answer as the correct answer

0 votes

Comments

Many thanks David for your answer, I'll discuss these options with my colleagues.


One other answer

Permanent link
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.



0 votes

Comments

Many thanks Ralph, I updated my question, I am hoping for an extension point in RTC client SDK to disable this menu option. I'll wait for reply from dev team to see if such extension point exists. If not, I'll look into the link you sent.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937
× 1,202

Question asked: Nov 11 '18, 6:38 a.m.

Question was seen: 1,728 times

Last updated: Nov 13 '18, 3:09 a.m.

Confirmation Cancel Confirm