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

problem hidding menu item contribution in Rational tools - rational tools incompatibility?

 Hi,

I have developed a plug-in with some new functionalities and it also hides a menu item in the builds view (by using org.eclipse.ui.activities).
It works fine in RTC, it has been tested in different computers.

However, there is a particular case where the item is not hidden from the UI, even though the other plugin functionalities are still available.
The only difference might be that this user has also installed some other rational tools.
Would it make sense that tools like "Rational Software Architecture" may prevent to hidding UI components??
Is there some kind of incompatibility among Rational tools?

Thanks in advance!

0 votes



2 answers

Permanent link
I don't think this has anything to do with rational tools incompatibility. This is more likely an Eclipse version and an issue with your extension.

Different tools ship with different versions of Eclipse and this can affect extensions in several ways. For one thing in your plugins you define plugin dependencies (to available versions of plugins). And your plugin might actually not start, if that version is not available. 

You could try to debug with his tool configuration or you could try to remove the minimal version entries in your plugin dependencies.

0 votes


Permanent link
We both are using the same tool (RTC 4.0.3) and the same eclipse version (3.6.3). 
What it's weird to me it's that the plugin has two main functionalities affecting the same menu in the build view:
- Adds a new menu item 
- Removes another menu item (within the same menu)
Both functionalities are successfully implemented in all the users but one. In this particular case, it is possible to see the new item added. However, the item that is supposed to be hidden, it is still present in the menu. So the plug-in partially works.. 

Below there's a code snippet:
<extension
 point="org.eclipse.ui.popupMenus">
 <objectContribution
   objectClass="com.ibm.team.build.internal.common.model.dto.IBuildResultRecord"
   id="com.ibm.team.build.internal.common.model.dto.IBuildResultRecord"
   adaptable="true">  		
  <action
   label="XXXXX"
   class="XXXXX"
   enablesFor="+"
   id="XXXXX">
  </action>
 </objectContribution>
</extension>
<extension
 point="org.eclipse.ui.activities">  
 <activity id="myActivity" name="MenuHidingActivity">  
 </activity>
 <activityPatternBinding 
  activityId="myActivity"
  pattern="com.ibm.team.build.ui/com.ibm.team.build.ui.deleteBuildResultAction">  
 </activityPatternBinding>
</extension>	

0 votes

Comments

I was not even aware that you can hide menu entries in Eclipse. Thanks for this information. As I am not sure how that works (the xml above is crippled, it is unfortunate that HTM and XML barely work together I use pre as tag around code but even that struggles with the brackets.) I have no Idea what could cause it to fail. Maybe the Eclipse forums are a better place to ask?

I would like to look into this feature and potentially write a blog about it. Would you be OK with that Javier?

I see no problem.

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,938

Question asked: Mar 05 '14, 9:52 a.m.

Question was seen: 4,991 times

Last updated: Mar 06 '14, 6:35 a.m.

Confirmation Cancel Confirm