I wanted a full screen of Eclipse Oxygen in order to get good readability of code. So I hide toolbar, Status bar and I did Alt+F11, I went too far and I also hide menu bar. Now I am not able to show it back. How can I do so?
To hide menu bar I did this - Window-> Perspective-> Customize Perspective-> deselected all menu->ok
I am using Eclipse Oxygen on 64 bit Windows.
It's possible to restore the menu like this:
Close Eclipse
From your workspace folder, navigate to subfolder:
.metadata\.plugins\org.eclipse.e4.workbenchEdit the file
workbench.xmi. It's best to use an editor which can handle XML syntax: in Windows 10, I like EditPad Lite 8.Near the start of the file, you should find your perspective as an element with attributes
xsi:type=advanced:PerspectiveandelementId="org.eclipse.jst.j2ee.J2EEPerspective.NNNN".NNNNhere is the name of your saved perspective.Hopefully the next sub-element is
persistedStatewith the attributekey="persp.hiddenItems". You can edit the value of thathiddenItemsattribute to delete all the entries which have this form:persp.hideMenuSC:. They are comma-delineated. In my copy of this, it looks the final comma should be left in place, so the last entry retained in the list ends with a comma, like this:...
,persp.hideToolbarSC:org.eclipse.jdt.ui.actions.OpenProjectWizard,"/>