Hiding "Build Project" and "Clean Project" menu entries [message #1750448] |
Wed, 21 December 2016 03:12 |
Eclipse User |
|
|
|
Hey guys,
our customer wants to remove the menu entries "Build Project" and "Clean Project" from the context menu of the project (in the project explorer).
Also he wants to remove the "Clean..." menu entry in the "Project" menu.
I tried to remove the "Build Project" menu entry with the following activity:
<activity id="activity.disabledOnStart" name="disable"/>
<activityPatternBinding
activityId="activity.disabledOnStart"
pattern=".*/org.eclipse.ui.project.buildProject">
</activityPatternBinding>
But this approach does not work..
After trying this, I found out that the command "org.eclipse.ui.project.buildProject" is used in the IDEActionFactory (in "org.eclipse.ui.ide") to create the BUILD_PROJECT action.
Now this seems pretty hardcoded to me...
Is there a way to hide those menu items?
Thanks for any help! =)
|
|
|
Powered by
FUDForum. Page generated in 0.03937 seconds