I want to remove the File, edit, Source, Refactor, etc. menus from my RCP application
Can I use hideActionSet()
? or what should I do ?
标签:
eclipse-rcp
相关问题
- install plugin spy plugin into custom rcp applicat
- How to follow test first approach with Equinox/OSG
- RAP: How to access Object in ViewPart
- RCP Command with object argument
- How to add Swing component to SWT?
相关文章
- Problem with Validating the Integer Value in Java
- Using Eclipse with large workspaces
- Transfer Items between Views with Drag-and-Drop in
- how to build eclipse rcp application from .product
- Xtext DSL embedded editor in a dialog
- Maven Tycho: How to Exclude eclipsec.exe in a prod
- reference non plugin project to eclipse plugin pro
- When to choose “Generate an activator…” when creat
That's right; in your ApplicationWorkbenchWindowAdvisor, override postWindowOpen().
The tricky bit is usually figuring out the names of the actionsets that you want to remove, but you can use the old standby ALT-SHIFT-F2 (the default keybinding for 'Plugin-in Menu Spy') and click on one of the menu items that you want to remove.
Note that if the menu item is disabled, the spy won't give you any info on it.
Although the question is old:
Lars Vogel's tutorial about Eclipse Activities shows how to hide entire menus in an RCP application rather than removing single menu-entries.
EDIT: Alternatively you can use the MenuManager attached to the workbench window to show or hide Menus/Contributions. Try the following code to hide all menus: