Community
Participate
Working Groups
1. Start e4 SDK and open Java perspective. 2. Drag the outline into editor area (i.e. put it to the right of the editor but in the editor area). 3. Do "Reset Perspective..." 4. Notice that Outline was not restored to its original position. 5. Drag Outline out of the editor area (i.e. put it to left of the Package Explorer) 6. Click "Reset Perspective..." Outline is restored to its original position.
This is the expected behaviour.
Created attachment 194720 [details] Patch to remove views from the shared area on a perspective reset This is necessary as there is currently no way to restore the perspective to its original state. The main logic change was to set the MPlaceholder to have TBR == false (rather than removing it). This allows the reset in Perspective 'A' to remove a view in the shared area but still allows the view to be re-opened in perspective 'B' in its correct location. Also changes the logic in 'findPlaceholderFor' to explicitly check whether there are two MPlaceholders for a Part and, if so, choose the one in the shared area.
Committed in >20110504. Applied the patch. There are still a number of edge conditions which are not well handled but at least you can always get a perspective back to a clean state with a 'reset'. One of the edges is: Have two perspectives 'A' and 'B' both showing part "P". In 'A' drag P into the shared area (B's placeholder for P is hidden) Switch to B and drag P into a perspective stack, now there's two placeholders for P, both in the perspective. A deeper one is: In the Java perspective drag the 'left' *stack* into the shared area. Drag an editor into the stack Reset In this case we end up with two stacks with the id 'left'. Note that if there's no editor in the 'left' stack in the shared area then the reset will end up removing it (because it'll go empty once all of its placeholders are removed).
(In reply to comment #2) > Created attachment 194720 [details] > Patch to remove views from the shared area on a perspective reset This patch has introduced a regression, see bug 349331.
Can the "Reset Perspective" be called in an e4-Application? Where is the API?
(In reply to comment #5) > Can the "Reset Perspective" be called in an e4-Application? Where is the API? No, that API isn't there. You could theoretically model this I suppose.
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. -- The automated Eclipse Genie.
This is a mass change to close all e4 bugs marked with "stalebug" whiteboard. If this bug is still valid, please reopen and remove the "stalebug" keyword.