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

(-)/opengrok/src/contrib/poorMansPortfolios/src/org/netbeans/modules/project/portfolios/PortfoliosTopComponent.java (-8 / +11 lines)
Lines 49-55 Link Here
49
import javax.swing.text.DefaultEditorKit;
49
import javax.swing.text.DefaultEditorKit;
50
import org.netbeans.api.project.FileOwnerQuery;
50
import org.netbeans.api.project.FileOwnerQuery;
51
import org.netbeans.api.project.Project;
51
import org.netbeans.api.project.Project;
52
import org.netbeans.api.project.ProjectInformation;
53
import org.netbeans.api.project.ProjectUtils;
52
import org.netbeans.api.project.ProjectUtils;
54
import org.netbeans.api.project.ui.OpenProjects;
53
import org.netbeans.api.project.ui.OpenProjects;
55
import org.netbeans.spi.project.ui.LogicalViewProvider;
54
import org.netbeans.spi.project.ui.LogicalViewProvider;
Lines 633-640 Link Here
633
            this.showProjectChildren = showProjectChildren;
632
            this.showProjectChildren = showProjectChildren;
634
        }
633
        }
635
        
634
        
635
        AbstractNode waitNode = null;
636
        protected void addNotify() {
636
        protected void addNotify() {
637
            setKeys (Collections.singleton(NbBundle.getMessage (getClass(), "LBL_Wait")));
637
            {
638
                if (waitNode == null) {
639
                    waitNode = new AbstractNode(Children.LEAF);
640
                    waitNode.setDisplayName(NbBundle.getMessage (getClass(), "LBL_Wait"));
641
                }                
642
                setKeys(Collections.singleton( waitNode ));
643
            }
638
            Runnable r = new Runnable() {
644
            Runnable r = new Runnable() {
639
                public void run() {
645
                public void run() {
640
                    FolderFilterChildren.super.addNotify();
646
                    FolderFilterChildren.super.addNotify();
Lines 682-693 Link Here
682
            }
688
            }
683
        }
689
        }
684
        
690
        
685
        protected Node[] createNodes(Object key) {
691
        protected Node[] createNodes(Node key) {
686
            if (key instanceof String) {
692
687
                AbstractNode waitNode = new AbstractNode(Children.LEAF);
688
                waitNode.setDisplayName((String) key);
689
                return new Node[] { waitNode };
690
            }
691
            Node n = (Node) key;
693
            Node n = (Node) key;
692
            DataShadow shadow = (DataShadow) n.getLookup().lookup(DataShadow.class);
694
            DataShadow shadow = (DataShadow) n.getLookup().lookup(DataShadow.class);
693
            if (shadow != null) {
695
            if (shadow != null) {
Lines 709-714 Link Here
709
            }
711
            }
710
            return new Node[] { n.cloneNode() };
712
            return new Node[] { n.cloneNode() };
711
        }
713
        }
714
712
    }
715
    }
713
    
716
    
714
    private static class ProjectFilterNode extends FilterNode {
717
    private static class ProjectFilterNode extends FilterNode {

Return to bug 50683