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.

View | Details | Raw Unified | Return to bug 267258
Collapse All | Expand All

(-)a/projectui/src/org/netbeans/modules/project/ui/ProjectsRootNode.java (-1 / +1 lines)
Lines 341-349 Link Here
341
                        
341
                        
342
            if (type == PHYSICAL_VIEW) {
342
            if (type == PHYSICAL_VIEW) {
343
                final Sources sources = p.data.second().first();
343
                final Sources sources = p.data.second().first();
344
                final SourceGroup[] groups = p.data.second().second();
345
                sources.removeChangeListener( this );
344
                sources.removeChangeListener( this );
346
                sources.addChangeListener( this );
345
                sources.addChangeListener( this );
346
                final SourceGroup[] groups = p.data.second().second();
347
                sources2projects.put( sources, new WeakReference<Project>( project ) );
347
                sources2projects.put( sources, new WeakReference<Project>( project ) );
348
                final List<Node> nodes = new ArrayList<>(groups.length);
348
                final List<Node> nodes = new ArrayList<>(groups.length);
349
                for (SourceGroup group : groups) {
349
                for (SourceGroup group : groups) {

Return to bug 267258