Package org.openide.nodes

Examples of org.openide.nodes.Children


        }
        colorCalibratorSettings.addPropertyChangeListener(this);
        BeanNode colorCalibratorNode = new CleanBeanNode<CalibrationWorker.ColorSettings>
                (colorCalibratorSettings, null, "ColorCalibrator");

        Children children = new Children.Array();
        children.add(new Node[] { cameraNode, projectorNode, markerNode, detectorNode,
                geometricCalibratorNode, colorCalibratorNode });

        Node root = new AbstractNode(children);
        root.setName("Settings");
        manager.setRootContext(root);
View Full Code Here


            trackingSettings = new TrackingWorker.Settings();
        }
        BeanNode trackingNode = new CleanBeanNode<TrackingWorker.Settings>
                (trackingSettings, editors, "TrackingWorker");

        Children children = new Children.Array();
        children.add(new Node[] { cameraNode, projectorNode, objectFinderNode,
                markerDetectorNode, alignerNode, handMouseNode, virtualBallNode,
                realityAugmentorNode, trackingNode });

        Node root = new AbstractNode(children);
        root.setName("Settings");
View Full Code Here

    }

    private void expandFirstLevel(BeanTreeView btv) {
       
        Node root = manager.getRootContext();
        Children ch = root.getChildren();
        if ( ch == Children.LEAF ) {
            return;
        }
        Node nodes[] = ch.getNodes(true);

        btv.expandNode(root);
        for ( int i = 0; i < nodes.length; i++ ) {           
            btv.expandNode( nodes[i] );
            if ( i == 0 ) {
View Full Code Here

        expandAllNodes(this.platforms, node, mgr, platform);
    }

    private static void expandAllNodes (BeanTreeView btv, Node node, ExplorerManager mgr, ScalaPlatform platform) {
        btv.expandNode (node);
        Children ch = node.getChildren();
        if ( ch == Children.LEAF ) {
            if (platform != null && platform.equals(node.getLookup().lookup(ScalaPlatform.class))) {
                try {
                    mgr.setSelectedNodes (new Node[] {node});
                } catch (PropertyVetoException e) {
                    //Ignore it
                }
            }
            return;
        }
        Node nodes[] = ch.getNodes( true );
        for ( int i = 0; i < nodes.length; i++ ) {
            expandAllNodes( btv, nodes[i], mgr, platform);
        }

    }
View Full Code Here

    private void jButtonNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNewActionPerformed
        try {
            String stringElementName = elementCreator.createElement().getName();
            Node nodeRoot = manager.getExploredContext();
            Children children = nodeRoot.getChildren();
            Node node = children.findChild( stringElementName );

            if ( node != null ) {
                updateSelection( new Node[] { node } );
            }
        }
View Full Code Here

        return actions;
    }

    public void moveUp()
    {
        Children children = getParentNode().getChildren();
       ((IDLBaseChildren)children).moveUp(this);
    }
View Full Code Here

       ((IDLBaseChildren)children).moveUp(this);
    }

    public void moveDown()
    {
        Children children = getParentNode().getChildren();
        ((IDLBaseChildren)children).moveDown(this);
    }
View Full Code Here

    public Node findPath ( Node root, Object target ) {
        NodeJSProject p = root.getLookup().lookup( NodeJSProject.class );
        if (target instanceof FileObject && p != null) {
            FileObject t = (FileObject) target;
            if (t.getParent().equals( p.getProjectDirectory() )) {
                Children kids = root.getChildren();
                Node[] nodes = kids.getNodes( true );
                Set<Node> folders = new HashSet<Node>();
                for (Node node : nodes) {
                    DataObject dob = node.getLookup().lookup( DataObject.class );
                    if (dob != null) {
                        if (t.equals( dob.getPrimaryFile() )) {
View Full Code Here

    FileObject showSelectMainFileDialog () {
        ExplorerPanel ep = new ExplorerPanel();
        final ExplorerManager mgr = ep.getExplorerManager();
        ChildFactory<?> kids = new AllJSFiles( getProjectDirectory() );
        Children ch = Children.create( kids, true );
        Node root = new AbstractNode( ch );
        mgr.setRootContext( root );
        final SwingValidationGroup grp = SwingValidationGroup.create();
        ValidationPanel pnl = new ValidationPanel( grp );
        pnl.setInnerComponent( ep );
View Full Code Here

        if(!map.isEmpty()) {
            Collection<AbstractFile> kvCollection = kvContents;
            Node rootNode = null;

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

                rootNode = new AbstractNode(childKeyValueContentNodes);
            } else {
                rootNode = Node.EMPTY;
View Full Code Here

TOP

Related Classes of org.openide.nodes.Children

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.