Hi,
I have just had to hide some Eclipse menus from a perspective.
Two in fact: “Run” and “Navigate“. There were too many menus and these two were useless.
So, one possible solution to remove them could have been with capabilities.
But I used a more simple solution, based on perspective extensions.
No more talk, here is the XML sample that illustrates it (useful to get the menu IDs).
<extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="com.ebmwebsourcing.petals.common.mainPerspective">
<hiddenMenuItem id="org.eclipse.ui.run"></hiddenMenuItem>
<hiddenMenuItem id="navigate"></hiddenMenuItem>
</perspectiveExtension>
</extension>