|Hide menus thr' activities/perspectiveExtensions not working [message #736687]
||Fri, 14 October 2011 04:23
| Binuraj Mising name
Registered: October 2011
I am trying to hide a menu contribution by trying two approaches .
Approach 1- through "org.eclipse.ui.activities"
The menu is defined as given below
I have tried the following to hide this menu iseing activities
<activity id="com.teamcenter.rac.VMPartPse" name="HideCommonPartMenuPse" description="This activIty will hide the common Part menu when VM is installed" />
<activityPatternBinding activityId="com.teamcenter.rac.VMPartPse" isEqualityPattern="true"
Here "com.teamcenter.rac.pse" is the plugin id and "com.teamcenter.rac.pse.mc.newPart" is the command id in menu contribution as given in Snippet -1.
Any idea why this is not working?
Approach -2 though "org.eclipse.ui.perspectiveExtensions"
I have tried an alternative option using "org.eclipse.ui.perspectiveExtensions" as given below
<hiddenMenuItem id="com.teamcenter.rac.newPart" />
Any idea why these options are not working?
Note: I have successfully hidden menus using the approach-1 for one use case.
But the same is now working for another usecase.
Can I achieve the same through any other mechanism, like context?
Here my constraint is I don't have permission to edit the already existing menu contribution which I am trying to hide from my custom plugin.
Powered by FUDForum
. Page generated in 0.10446 seconds