Package org.jbpm.ui.common.model

Examples of org.jbpm.ui.common.model.Active


        return null;
    }

    @Override
    protected Command createAddCommand(EditPart child, EditPart after) {
        Active newTarget = (Active) getHost().getModel();
        if (child instanceof ActionGraphicalEditPart) {
            ActionGraphicalEditPart actionEditPart = (ActionGraphicalEditPart) child;
            int newIndex = getHost().getChildren().indexOf(after);
            return new MoveActionCommand(newTarget, (Action) actionEditPart.getModel(), newIndex);
        }
View Full Code Here


            }
            int actionIndex = marker.getAttribute(PluginConstants.ACTION_INDEX_KEY, -1);
            if (actionIndex != -1) {
                String parentTreePath = marker.getAttribute(PluginConstants.PARENT_NODE_KEY, null);
                String[] paths = parentTreePath.split("\\|", -1);
                Active active;
                if (paths.length == 1) {
                    active = (Active) findElement(designerEditor.getDefinition(), NamedGraphElement.class, paths[0]);
                } else if (paths.length == 2) {
                    Node node = (Node) findElement(designerEditor.getDefinition(), Node.class, paths[0]);
                    active = node.getTransitionByName(paths[1]);
                } else {
                    throw new RuntimeException("Invalid tree path: " + parentTreePath);
                }
                List<? extends Action> activeActions = active.getActions();
                graphElement = activeActions.get(actionIndex);
            }

            if (graphElement != null) {
                designerEditor.select(graphElement);
View Full Code Here

TOP

Related Classes of org.jbpm.ui.common.model.Active

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.