This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251993 - per project group window layout not preserved
Summary: per project group window layout not preserved
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-22 15:24 UTC by tbrunhoff
Modified: 2016-11-29 16:57 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
before switching to another project group (771.91 KB, image/png)
2015-04-22 15:24 UTC, tbrunhoff
Details
after switching back to the original project group (617.96 KB, image/png)
2015-04-22 15:24 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2015-04-22 15:24:14 UTC
Created attachment 153304 [details]
before switching to another project group

This appears to have been reported with 7.3 as #232489, and eventually marked closed/incomplete, although its not clear why.

Switching between project groups invokes fear in me, because it will always take time to get to a layout that works again. I can't even predict where edit windows will end up.

The first attachment, beforeSwitch.png, shows an active layout. Yes, I have two 2560x1440 screens treated as a single X desktop. Note the three edit windows on the left, and the project list to the right followd by variables, breakpoints, stack, and then finally the big output window on the far right. That was the project I was working on when a bug arrived for a different project, which required that I switch to a different project group.

The second attacnment, afterSwitchingBack.png, is the result.  All of the edit windows have migrated to the far right window, and the main window is now empty.

I would think that either explicit placement metadata needs to be saved and restored, or for a more general approach, some expression of affinity for window placement. Anyway, this does not work.


Product Version: NetBeans IDE Dev (Build 201503250001)
Updates: Updates available
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.14.27-100.fc19.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.cache/netbeans/dev
Comment 1 tbrunhoff 2015-04-22 15:24:46 UTC
Created attachment 153305 [details]
after switching back to the original project group
Comment 2 Theofanis Oikonomou 2015-07-20 15:59:46 UTC
IIUC when user switches from one project group to another the first project group closes. This leads to many/all editor windows to close. When this happens and there are editor windows placed in a mode that is not permanent and is emptied that mode is removed. When at a later step you switch back to that project group then the mode is not present and the editor windows open in the default location. IIANM this is described in org.netbeans.core.windows.Central.removeTopComponentFromOtherModes and so it seems there is no contract to save/restore window layout in this case. Closing this one.
Comment 3 tbrunhoff 2015-07-20 16:22:48 UTC
It seems that you are claiming certain words in a description give you license to not fix a distasteful aspect of the UI.

Alex, and Vladimir, may I ask you to confirm this view. Thanks.
Comment 4 Theofanis Oikonomou 2015-07-21 08:41:29 UTC
(In reply to tbrunhoff from comment #3)
> It seems that you are claiming certain words in a description give you
> license to not fix a distasteful aspect of the UI.

I am not claiming that this might not be "a distasteful aspect of the UI". I am claiming that if there never was a contract to restore such window layout then this is not a bug. I might be wrong though.
Comment 5 tbrunhoff 2015-07-23 15:36:18 UTC
Then perhaps making this an enhancement makes sense.
Comment 6 tbrunhoff 2016-11-29 16:57:45 UTC
Any hope of ever addressing this?

The layout metadata is saved between ide runs, but is discarded when the project group is changed. Could someone identify the files that contain this metadata so that it could, at least, be saved/restored by hand when changing the project group?