Remove View Name from Eclipse Menu Window & # 8594; Show view

I need to remove the name / shortcut of the view that I created in the Window-> Show View menu and add them as a separate menu.

Is there any way to hide / delete my entry from Window-> Show View.

+4
source share
2 answers

You can add / remove any view from the "Show View" menu on the "Set Perspective / Menu" tab:

http://img8.i_mageshack.us/img8/3854/menuvisibility.png


To do the same programmatically, one would have to follow the same course of action than the org.eclipse.ui.internal.dialogs.CustomizePerspectiveDialog class, and also learn the okPressed() method, for example:

 perspective.setShowViewActionIds(menu.getCheckedItemIds()); 

Vlad Ilie mentions in the comments :

since I only needed View be completely inaccessible using the normal graphical interface, there was enough for me to follow this blog post " eEclipse Activities - Hide / Show Certain Elements of the User Interface ":

This would mean that the WorkbenchActivitySupport.setEnabledActivityIds(String[]) programmatic method can be used to enable or disable views after they have been put in place.

+7
source

I suggest you go to window-> Settings or adjust the perspective. I think this is the place from where we can control the displayed menu.

0
source

All Articles