Reputation: 43
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.
Upvotes: 1
Views: 603
Reputation: 548
It's possible to restore the menu like this:
Close Eclipse
From your workspace folder, navigate to subfolder: .metadata\.plugins\org.eclipse.e4.workbench
Edit 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:Perspective
and elementId="org.eclipse.jst.j2ee.J2EEPerspective.NNNN"
. NNNN
here is the name of your saved perspective.
Hopefully the next sub-element is persistedState
with the attribute key="persp.hiddenItems"
. You can edit the value of that hiddenItems
attribute 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,"/>
Upvotes: 1