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 89662 - Changing source level collapses project tree
Summary: Changing source level collapses project tree
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
: 90281 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-20 12:58 UTC by Jiri Kovalsky
Modified: 2007-02-21 07:13 UTC (History)
1 user (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 Jiri Kovalsky 2006-11-20 12:58:22 UTC
Development build #20061120 of NetBeans 6.0
Windows XP, JDK 1.6.0 RC build #101

Description:
============
Average NetBeans user will be disappointed when s/he decides to change source
level of project because this action collapses all project subnodes.

Steps to reproduce:
===================
1. Generate new project from template.
2. Expand the "Source Packages" node.
3. Right click project node and select "Properties" from popup menu.
4. Select "Sources" category and change "Source Level" to 1.3. Click "OK".
5. "Source Packages" node gets collapsed.
Comment 1 Tomas Zezula 2007-02-15 08:29:01 UTC
*** Issue 90281 has been marked as a duplicate of this issue. ***
Comment 2 Marian Mirilovic 2007-02-15 08:34:21 UTC
Source Folder is also collapsed after adding new library (issue 90281).
Comment 3 Tomas Zezula 2007-02-15 09:05:23 UTC
Caused by the NodeFactorySupport. The nodes for the source roots are always
replaced by new ones. The SourceGroupKey.equals() [hashCode()] is not even called.
The problem is that NodeFactorySupport is calling NodeList.keys(), it's OK, but
it then refreshes all the nodes for SourceNodeList.
Comment 4 Jesse Glick 2007-02-19 20:38:25 UTC
Problem in impl of new API -> should be evaluated.
Comment 5 Milos Kleint 2007-02-21 07:13:36 UTC
fixed.

Checking in NodeFactorySupport.java;
/cvs/projects/projectuiapi/src/org/netbeans/spi/project/ui/support/NodeFactorySupport.java,v
 <--  NodeFactorySupport.java
new revision: 1.8; previous revision: 1.7