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 48118 - [40cat] Selected node not restored in Projects view
Summary: [40cat] Selected node not restored in Projects view
Status: CLOSED DUPLICATE of bug 44877
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P4 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-29 07:15 UTC by deeptinker
Modified: 2006-03-24 10:27 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 deeptinker 2004-08-29 07:15:37 UTC
[ BUILD # : 040819 ]
[ JDK VERSION : J2SE 1.4.2_05 ]

Steps to reproduce:
1. Start IDE.
2. Open or create a project.
3. Quit IDE while still open.
4. Start IDE.

NB will open the project, but the title bar still says no project.  If one clicks on the project name, the title bar will change to show the project name, but it doesn't "stick".

Probably wrong component, and certainly NOT a showstopper.

Travis
Comment 1 Marian Mirilovic 2004-08-29 08:33:34 UTC
works fine in [nb_dev](200408262030), [jdk1.5.0](b63) , LinuxRH9
Comment 2 deeptinker 2004-08-30 07:40:13 UTC
Hi Marian,

I will try again tonight with a daily build to see if it is still
reproducible.  It may involve the interaction of NB and the Aqua LAF
on the Mac.  Since it is a minor issue, I expect it to get fixed only
if someone is looking at that part of the code for some other issue.

Travis
Comment 3 Milos Kleint 2004-08-30 07:50:03 UTC
reassigning
Comment 4 Milos Kleint 2004-08-30 12:19:28 UTC
if I understand the report correctly, you probably have a different
idea about the updating algorithm.

the way it works:
the title is based on currently selected node(s) in the IDE. if after
restart none of the nodes was selected (or one that doens't belong to
any project was highlighted - like any in the Runtime component) then
the title will say No Project.
BTW issue #48101 deals with removing the No Project text alltogether.

does it explan the non-sticky-ness?

Closing as worksforme, please reopen if I got it wrong or you disagree.
Comment 5 deeptinker 2004-08-31 06:36:45 UTC
Hi Milos,

Based on the insight you shared, perhaps I can rephrase my question.

When NB is ended, it remembers what project(s) were open at the time.
 When NB is restarted, it reopens all projects that were open before.
 However, since NB does not remember which project was selected when
ended, it does not know which project to select when reopened.

Is this accurate?  If so, is it a non-trivial effort to save and
restore the selected project, or other considerations not obvious to me?

If I understand your explanation, saving and restoring the selected
project would cause the title bar to be updated correctly.  This would
be separate from issue #48101, IMHO.

Travis
Comment 6 Milos Kleint 2004-08-31 08:25:22 UTC
Ok, from what you write this is more about the restoring of selected
nodes after restart. 
I figured this works correctly under linux but fails under MacOSX.
It also works on mac for the Runtime tab. So my current evaluation is
that it's a problem of the Projects tab component, not the window
system. reassigning for further evaluation.
Comment 7 Petr Hrebejk 2004-08-31 10:07:48 UTC
Just tested in the lastet build. Works on Mac and Linux as well. Pleas
notice that the selection persistence was added after beta.

*** This issue has been marked as a duplicate of 44877 ***
Comment 8 deeptinker 2004-09-24 02:47:54 UTC
Fix for 44877 took care of this problem, too.  Thanks.