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 11008 - Some windows are not closed when opening or creating project
Summary: Some windows are not closed when opening or creating project
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks: 10725
  Show dependency tree
 
Reported: 2001-04-03 18:32 UTC by David Simonek
Modified: 2003-07-01 14:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Simonek 2001-04-03 18:32:02 UTC
1) Open windows like Project Setting or Global Options
2) Create new project or open some older project
Now you can see that Project Setting or Global Options stays on the screen even
if they are not a part of opened project.

Suggested fix: close windows before opening or creating new project. Valid code
should look like this:

WindowManager wm = TopManager.getDefault().getWindowManager();
Workspace[] ws = wm.getWorkspaces();
for(int i = 0; i < ws.length; i++) {
    ws[i].remove();
}

This code can be executed from any thread, at least I hope...
Comment 1 David Strupl 2001-04-06 16:13:05 UTC
Fixed in the [dev] branch.
Comment 2 David Strupl 2001-04-06 16:17:09 UTC
The fix calls createFromScratch. I don't know if there will be any threading
problems with this. Leaving only in [dev] branch for now.
Comment 3 David Strupl 2001-04-06 17:05:54 UTC
createFromScratch
 seems to work so I call it from project open also in [release32]. If there are
any problems with it please reopen.
Comment 4 Jan Chalupa 2001-05-06 14:26:32 UTC
Target milestone -> 3.2
Comment 5 Quality Engineering 2003-07-01 14:15:12 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 6 Quality Engineering 2003-07-01 14:17:40 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.