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 102805 - Main window title does not clear after closing project
Summary: Main window title does not clear after closing project
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-04-27 17:06 UTC by Jesse Glick
Modified: 2008-03-03 15:08 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 Jesse Glick 2007-04-27 17:06:09 UTC
Sometimes the Projects tab seems to retain a node selection from a project after
it has been closed. This is visible in the main window title. Not sure exactly
how to reproduce, but happens to me very often.

Would be P4 (minor annoyance) except I fear that it is also a memory leak.
Hacks.keepCurrentProjectNameUpdated is getting the project name from an actual
Project object, meaning some TopComponent lookup is still holding onto it.

Not a new bug, has been broken for as long as I can remember.
Comment 1 Milos Kleint 2007-09-05 13:29:00 UTC
I've tried to reproduce in current builds for quite some time without success. What are the opened documents or
topcomponents you have when closing the project?
Comment 2 Jesse Glick 2007-09-06 22:53:47 UTC
I don't know, the usual: Projects, Files, sometimes document windows.

I think I just saw this today in 070905. So common I hardly notice it.

Should be possible to insert logging code which detects this condition, I guess.
Comment 3 Milos Kleint 2007-10-04 14:01:55 UTC
sorry, still can't duplicate on jdk 1.5, linux/kde or macosx.
Not sure where to insert logging in the Hacks class. It could be possibly caused by your OS window system?
Comment 4 Jesse Glick 2007-10-04 15:34:42 UTC
Just using Metacity, the default WM for Gnome.
Comment 5 Jesse Glick 2007-10-22 18:34:26 UTC
Continues to happen at times.
Comment 6 Jesse Glick 2007-10-22 18:47:15 UTC
I have added some logging to try to help reproduce:

Checking in Hacks.java;
/shared/data/ccvs/repository/projects/projectui/src/org/netbeans/modules/project/ui/Hacks.java,v  <--  Hacks.java
new revision: 1.27; previous revision: 1.26
done
Comment 7 Milos Kleint 2008-03-03 07:53:26 UTC
any luck with the logging added?
Comment 8 Jesse Glick 2008-03-03 15:08:12 UTC
Hmm, I don't remember seeing this happen recently (though I got so used to it happening that I'm not sure I would notice
if it did). Cannot currently reproduce through casual attempts. Might have been some little bug fixed by project memory
leak work?