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 199245 - Main window title does not reliably update to selected project
Summary: Main window title does not reliably update to selected project
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 134802
  Show dependency tree
 
Reported: 2011-06-07 20:21 UTC by Jesse Glick
Modified: 2011-08-26 14:59 UTC (History)
2 users (show)

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 2011-06-07 20:21:53 UTC
In NB dev or 7.0.1, if the IDE starts up with a project selection, the main window title will never display the project name. Not reproducible in 7.0.

The fix of bug #134802 is inappropriately active - something changes the main window title "behind the back" of projectui.Hacks.

Workaround is to make a selection with no project association and restart the IDE.
Comment 1 Jesse Glick 2011-06-07 20:44:09 UTC
core-main #8bedb45eed41
Comment 2 Quality Engineering 2011-06-08 14:49:01 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/8bedb45eed41
User: Jesse Glick <jglick@netbeans.org>
Log: #199245: Main window title does not reliably update to selected project
Comment 3 Jesse Glick 2011-06-10 17:16:25 UTC
releases #08199be15ec6
Comment 4 Quality Engineering 2011-06-11 04:18:35 UTC
Integrated into 'releases'
Changeset: http://hg.netbeans.org/releases/rev/08199be15ec6
User: Jesse Glick <jglick@netbeans.org>
Log: #199245: Main window title does not reliably update to selected project
(transplanted from 8bedb45eed41ec4d3ed273a209acbdcb8de05ed5)
Comment 5 Alexander Simon 2011-08-26 09:49:08 UTC
Fix broke command line utils.
Module "Project UI" does not have dependency on module "Core - Windows" but uses bundle from it:
            final String NO_PROJECT_TITLE = MessageFormat.format(NbBundle.getBundle("org.netbeans.core.windows.view.ui.Bundle").getString("CTL_MainWindow_Title_No_Project"), BUILD_NUMBER);
At run time command line utils have UI exception:

Caused: java.util.MissingResourceException: No such bundle org.netbeans.core.windows.view.ui.Bundle
	at org.openide.util.NbBundle.getBundle(NbBundle.java:451)
	at org.openide.util.NbBundle.getBundle(NbBundle.java:383)
	at org.netbeans.modules.project.ui.Hacks$1.<init>(Hacks.java:94)
	at org.netbeans.modules.project.ui.Hacks.keepCurrentProjectNameUpdated(Hacks.java:91)
	at org.netbeans.modules.project.ui.ProjectUiModule.restored(ProjectUiModule.java:61)
	at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:426)

Please avoid such implementation dependency.
Comment 6 Tomas Danek 2011-08-26 10:45:29 UTC
definitely not for patch1, deadline for incoming fixes is FRI 8/26 COB
Comment 7 Jesse Glick 2011-08-26 14:59:00 UTC
The bug as reported is fixed (as far as I know). Please file separate blocking issues for any derivative problems, including any steps to reproduce (I am not sure what "command line utils" you refer to).