Package org.mevenide.idea.repository.tree.model

Examples of org.mevenide.idea.repository.tree.model.RepoTreeNode


            setCellRenderer(new RepoTreeCellRenderer());
    }

    public void fetchNode(final TreeNode pNode) {
        if (pNode instanceof RepoTreeNode) {
            final RepoTreeNode node = (RepoTreeNode) pNode;
            node.fetchChildren(nodeExpander);
        }
    }
View Full Code Here


                final TreePath path = event.getPath();
                final Object last = path.getLastPathComponent();
                if (!(last instanceof RepoTreeNode))
                    return;

                final RepoTreeNode node = (RepoTreeNode) last;
                node.fetchChildren(this);
            }
        }
View Full Code Here

    private String getTextForValue(final Object value) {
        if (value instanceof MessageNode)
            return ((MessageNode) value).getMessage();

        else if (value instanceof RepoTreeNode) {
            final RepoTreeNode node = (RepoTreeNode) value;
            final RepoPathElement pathElement = node.getPathElement();
            return getTextForPathElement(pathElement);
        }
        else
            return value == null ? "" : value.toString();
    }
View Full Code Here

        final Set<RepoPathElement> elements = new HashSet<RepoPathElement>(selections.length);
        for (TreePath path : selections) {
            final Object elt = path.getLastPathComponent();
            if (elt instanceof RepoTreeNode) {
                final RepoTreeNode node = (RepoTreeNode) elt;
                elements.add(node.getPathElement());
            }
        }

        return elements.toArray(new RepoPathElement[elements.size()]);
    }
View Full Code Here

            final TreeModel treeModel = tree.getModel();
            if (!(treeModel instanceof RepoTreeModel))
                continue;

            final RepoTreeModel model = (RepoTreeModel) treeModel;
            final RepoTreeNode root = model.getRoot();
            if (root == null)
                continue;

            final RepoPathElement pathElement = root.getPathElement();
            if (pathElement == null)
                continue;

            final IRepositoryReader repo = pathElement.getReader();
            if (currentRepo.equals(repo))
View Full Code Here

            for (TreePath path : pTreePaths) {
                final Object value = path.getLastPathComponent();
                if (!(value instanceof RepoTreeNode))
                    return false;

                final RepoTreeNode node = (RepoTreeNode) value;
                final RepoPathElement desc = node.getPathElement();
                switch (desc.getLevel()) {
                    case RepoPathElement.LEVEL_GROUP:
                        if (!allowingGroups)
                            return false;
                        break;
View Full Code Here

TOP

Related Classes of org.mevenide.idea.repository.tree.model.RepoTreeNode

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.