I need to remove the name/shortcut of the view which I have created from the Window->Show View menu. Because I display this view in a separate menu.
Is there any way to hide/remove its entry from Window->Show View menu.
Thanks in advance
I need to remove the name/shortcut of the view which I have created from the Window->Show View menu. Because I display this view in a separate menu.
Is there any way to hide/remove its entry from Window->Show View menu.
Thanks in advance
Hi,
I would suggest you to go to window->Preferences or customize perspective. I think this is place from where we can controls the menu's to be displayed. BTW how did u create ur own menu ???
Thanks
You can add/remove any view from the "Show View" menu from the Customize Perspective / Menu Visibility tab:
To do the same thing programmatically would imply to follow the same course of action than the class org.eclipse.ui.internal.dialogs.CustomizePerspectiveDialog
, and look into the method okPressed()
for instance:
perspective.setShowViewActionIds(menu.getCheckedItemIds());