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

Summary: Some windows are not closed when opening or creating project
Product: projects Reporter: David Simonek <dsimonek>
Component: Generic InfrastructureAssignee: David Strupl <dstrupl>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 10725    

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.