Package org.enhydra.jawe.components

Examples of org.enhydra.jawe.components.XPDLTreeNode


                // hilite affected process in tree
                if (wp != null) {
                    SimpleNavigator tcon = (SimpleNavigator) JaWEManager.getInstance().getComponentManager().getComponent("SimpleNavigatorComponent");
                    SimpleNavigatorPanel panel = (SimpleNavigatorPanel) (tcon.getView());
                    panel.getTree().removeTreeSelectionListener(tcon);
                    XPDLTreeNode n = ((XPDLTreeModel) panel.getTreeModel()).findNode(wp);
                    TreePath tp = null;
                    if (n != null) {
                        tp = new TreePath(n.getPath());
                        panel.getTree().addSelectionPath(tp);
                    }
                    if (tp != null) {
                        panel.getTree().scrollPathToVisible(tp);
                    }
View Full Code Here


                    for (int i = 0; i < toSelect.size(); i++) {
                        XMLElement toSel = (XMLElement) toSelect.get(i);
                        if (toSelect instanceof Transitions || toSelect instanceof Transition) {
                            continue;
                        }
                        XPDLTreeNode n = treeModel.findNode(toSel);
                        TreePath tp = null;
                        if (n != null) {
                            tp = new TreePath(n.getPath());
                            tree.addSelectionPath(tp);
                        }
                        if (tp != null) {
                            tree.scrollPathToVisible(tp);
                        }
View Full Code Here

    public void setCurrentSelection() {
        List toSelect = JaWEManager.getInstance().getJaWEController().getSelectionManager().getSelectedElements();
        for (int i = 0; i < toSelect.size(); i++) {
            XMLElement toSel = (XMLElement) toSelect.get(i);
            if (toSel instanceof Package || toSel instanceof WorkflowProcess || toSel instanceof ActivitySet || toSel instanceof Activity) {
                XPDLTreeNode n = treeModel.findNode(toSel);
                TreePath tp = null;
                if (n != null) {
                    tp = new TreePath(n.getPath());
                    tree.addSelectionPath(tp);
                }
                if (tp != null) {
                    tree.scrollPathToVisible(tp);
                }
View Full Code Here

TOP

Related Classes of org.enhydra.jawe.components.XPDLTreeNode

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.