Package org.openide.nodes

Examples of org.openide.nodes.AbstractNode


            resetExplorer();
        }
    }

    public void resetExplorer() {
        manager.setRootContext(new AbstractNode(Children.LEAF));
        ((BeanTreeView) tree).setRootVisible(false);
    }
View Full Code Here


            });
        } else {
            SwingUtilities.invokeLater(new Runnable() {

                public void run() {
                    manager.setRootContext(new AbstractNode(Children.LEAF) {

                        @Override
                        public Action[] getActions(boolean context) {
                            return new Action[0];
                        }
View Full Code Here

    /**
     * Get the constructed node
     * @return
     */
    public Node getRoot(){
        AbstractNode node = new AbstractNode(Children.LEAF);
        node.setIconBaseWithExtension("org/sodbeans/resources/consoleoutput.png");
        node.setDisplayName(this.getOutput());
        return node;
    }
View Full Code Here

        } catch (DataObjectNotFoundException donfe) {
            Exceptions.printStackTrace(donfe);
            //Fallback-the directory couldn't be created -
            //read-only filesystem or something evil happened
            return new AbstractNode (Children.LEAF);
        }
    }
View Full Code Here

     * in this file. This node represents only static analysis, not runtime
     * information that is in the debugger.
     * @return
     */
    public AbstractNode getRootNode() {
        AbstractNode node = new AbstractNode(this);
        node.setDisplayName(this.getName());
        return node;
    }
View Full Code Here

            } catch (Exception e) {
                logger.log(Level.INFO, e.getStackTrace().toString());
            }
        } else {

            AbstractNode newNode = new AbstractNode(Children.LEAF);
            mgr.setRootContext(newNode);
        }
    }
View Full Code Here

     */
    public void resetModelToCurrentFile() {
        if (fileObjectToOpen != null) {
            CompilerFileDescriptor cfd = compiler.getFileDescriptor(fileObjectToOpen);
            if (cfd != null) {
                AbstractNode root = cfd.getRootNode();
                if (root != null) {
                    mgr.setRootContext(root);
                    ((TreeTableView) jScrollPane1).setRootVisible(false);
                }
            }
View Full Code Here

     */
    public Node resetModelToCurrentFile() {
        if (currentFileInEditor != null) {
            CompilerFileDescriptor cfd = compiler.getFileDescriptor(currentFileInEditor);
            if (cfd != null) {
                AbstractNode root = cfd.getRootNode();
                if (root != null) {
                    mgr.setRootContext(root);
                    ((BeanTreeView) jScrollPane1).setRootVisible(false);
                }
            }
View Full Code Here

            if (kvCollection.size() > 0) {
                Children childKeyValueContentNodes =
                        Children.create(new HashDbSearchResultFactory(kvCollection), true);

                rootNode = new AbstractNode(childKeyValueContentNodes);
            } else {
                rootNode = Node.EMPTY;
            }

            final String pathText = NbBundle.getMessage(this.getClass(), "HashDbSearchManager.MD5HashSearch");
View Full Code Here

        Node rootNode;
        if (queryRequests.size() > 0) {
            Children childNodes =
                    Children.create(new KeywordSearchResultFactory(queryRequests, searchResultWin), true);

            rootNode = new AbstractNode(childNodes);
        } else {
            rootNode = Node.EMPTY;
        }

        final String pathText = NbBundle.getMessage(this.getClass(), "KeywordSearchQueryManager.pathText.text");
View Full Code Here

TOP

Related Classes of org.openide.nodes.AbstractNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.