Community
Participate
Working Groups
Steps to reproduce: 1. Open a perspective (I used the Java perspective). 1. Open an editor and modify the contents so that the editor is dirty (I used a Java Editor and entered a space character into the editor). "Save" and "Save All" are now enabled. 2. Maximize a view (I maximized the Outline view, via double-click on the "Outline" tab folder). 3. Select the menu item "Window" -> "Reset Perspective..." and confirm that the perspective should be reset. Expected result: The perspective is reset, and the "Save" and "Save All" buttons are enabled. Actual result: The perspective is reset, but the "Save" and "Save All" buttons are disabled. "Workaround": After selecting the editor, the "Save" and "Save All" buttons are once again enabled. Additional platform/version information: I was unable to reproduce this problem on Windows, and I was also unable to reproduce the problem with Eclipse Helios SR2 on Linux GTK.
Paul, do you see this problem on Linux with 3.7.x?
Yes. It's related to opening a dialog while a view is maximized in the perspective (I can get the same behaviour if I open the preferences dialog). If I open the preferences dialog without any min/max changes, the 2 actions are disabled, but closing the dialog re-enables both. PW
I confirm the bug, and it appears even today, with linux kernel 3.10.25, Eclipse 4.2 (Juno), and not sure about GTK version. Somehow the menu is messed up, and the maximized view (or editor in my case) remains active (good if the menu would be good). I decided to write a workaround, and succeeded, but it is not trivial at all. The concept is that the menu is restored correctly when I click on another editor or view, and the editor again. In practive, it means activating another part (IWorkbenchPart) which is not the focused one (view or editor), and after it is activated, activating the previously focused one thus the user gets the same GUI state. In my case, the editor loses the "Save As" menu, and there are usually views around, thus using part, perspective, and page listeners, I find a view on the page after perspective is activated and changed, store the active editor, then activate the found view, and when that view is activated, I activate the stored active editor. In case there is no view around, then we are unlucky, and the bug appears.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the stalebug whiteboard tag.