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

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


                //
                //notify that the structure of the given node has been changed
                //
                Runnable runnable = new Runnable() {
                    public void run() {
                        final RepoTreeModel repoModel = (RepoTreeModel) model;
                        repoModel.nodeStructureChanged(pNode);
                    }
                };
                SwingUtilities.invokeLater(runnable);
            }
        }
View Full Code Here


    }

    public void refresh(final IRepositoryReader pRepo) {
        if (repos.containsKey(pRepo)) {
            final String repoName = pRepo.getRootURI().toString();
            final RepoTreeModel repoModel = new RepoTreeModel(pRepo);
            final RepoTree repoTree = repos.get(pRepo);
            repoTree.setModel(repoModel);
            repoTree.fetchNode(repoModel.getRoot());
            treesCardLayout.show(treesPanel, repoName);
        }
        else
            addRepo(pRepo);
    }
View Full Code Here

    }

    protected RepoTree createRepoTree(final IRepositoryReader pRepo) {
        final RepoTree tree;
        if (pRepo != null)
            tree = new RepoTree(new RepoTreeModel(pRepo));
        else
            tree = new RepoTree();
        final ActionManager actionMgr = ActionManager.getInstance();
        PopupHandler.installPopupHandler(tree, actionGroup, PLACE, actionMgr);
        return tree;
View Full Code Here

        //
        //later on, start fetching the root node
        //
        final TreeModel model = repoTree.getModel();
        if (model instanceof RepoTreeModel) {
            final RepoTreeModel repoModel = (RepoTreeModel) model;
            repoTree.fetchNode(repoModel.getRoot());
        }
        return repoTree;
    }
View Full Code Here

        for (RepoTree tree : trees) {
            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)
View Full Code Here

TOP

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

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.