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 135399
Collapse All | Expand All

(-)a/projectui/src/org/netbeans/modules/project/ui/ProjectsRootNode.java (-2 / +19 lines)
Lines 85-90 Link Here
85
import org.openide.nodes.Children;
85
import org.openide.nodes.Children;
86
import org.openide.nodes.FilterNode;
86
import org.openide.nodes.FilterNode;
87
import org.openide.nodes.Node;
87
import org.openide.nodes.Node;
88
import org.openide.util.ImageUtilities;
88
import org.openide.util.Lookup;
89
import org.openide.util.Lookup;
89
import org.openide.util.NbBundle;
90
import org.openide.util.NbBundle;
90
import org.openide.util.RequestProcessor;
91
import org.openide.util.RequestProcessor;
Lines 443-450 Link Here
443
        protected final void setProjectFiles() {
444
        protected final void setProjectFiles() {
444
            Project prj = getLookup().lookup(Project.class);
445
            Project prj = getLookup().lookup(Project.class);
445
446
446
            if (prj != null && /* #145682 */ !(prj instanceof LazyProject)) {
447
            if (prj instanceof LazyProject) {
447
                setProjectFiles(prj);
448
449
            } else {
450
                if (prj != null && /* #145682 */ !(prj instanceof LazyProject)) {
451
                    setProjectFiles(prj);
452
                }
448
            }
453
            }
449
        }
454
        }
450
455
Lines 602-607 Link Here
602
        public @Override Image getIcon(int type) {
607
        public @Override Image getIcon(int type) {
603
            Image img = super.getIcon(type);
608
            Image img = super.getIcon(type);
604
609
610
            Project prj = getLookup().lookup(Project.class);
611
            if (prj instanceof LazyProject) {
612
                Image wait = ImageUtilities.loadImage("org/netbeans/modules/project/ui/resources/wait.gif"); // NOI18N
613
                return ImageUtilities.mergeImages(img, wait, 8, 4);
614
            }
615
605
            if (files != null && files.iterator().hasNext()) {
616
            if (files != null && files.iterator().hasNext()) {
606
                try {
617
                try {
607
                    FileObject fo = files.iterator().next();
618
                    FileObject fo = files.iterator().next();
Lines 617-622 Link Here
617
        public @Override Image getOpenedIcon(int type) {
628
        public @Override Image getOpenedIcon(int type) {
618
            Image img = super.getOpenedIcon(type);
629
            Image img = super.getOpenedIcon(type);
619
630
631
            Project prj = getLookup().lookup(Project.class);
632
            if (prj instanceof LazyProject) {
633
                Image wait = ImageUtilities.loadImage("org/netbeans/modules/project/ui/resources/wait.gif"); // NOI18N
634
                return ImageUtilities.mergeImages(img, wait, 8, 4);
635
            }
636
            
620
            if (files != null && files.iterator().hasNext()) {
637
            if (files != null && files.iterator().hasNext()) {
621
                try {
638
                try {
622
                    FileObject fo = files.iterator().next();
639
                    FileObject fo = files.iterator().next();

Return to bug 135399