Package org.jbpm.ui.common.command

Examples of org.jbpm.ui.common.command.ProcessDefinitionRemoveSwimlaneCommand


            message.append(stateNames);
        } else {
            message.append(Messages.getString("Swimlane.NotUsed"));
        }
        if (MessageDialog.openConfirm(Display.getCurrent().getActiveShell(), Messages.getString("ConfirmDelete"), message.toString())) {
            ProcessDefinitionRemoveSwimlaneCommand command = new ProcessDefinitionRemoveSwimlaneCommand();
            command.setProcessDefinition(getDefinition());
            command.setSwimlane(swimlane);
            editor.getCommandStack().execute(command);
            getDefinition().getSwimlaneGUIConfiguration().removeSwimlanePath(swimlane.getName());
        }
    }
View Full Code Here


        } else if (element instanceof Transition) {
            TransitionDeleteCommand result = new TransitionDeleteCommand();
            result.setTransition((Transition) element);
            return result;
        } else if (element instanceof Swimlane) {
            ProcessDefinitionRemoveSwimlaneCommand result = new ProcessDefinitionRemoveSwimlaneCommand();
            result.setSwimlane((Swimlane) element);
            result.setProcessDefinition((ProcessDefinition) selectedPart.getParent().getModel());
            return result;
        } else if (element instanceof Action) {
            ActionDeleteCommand command = new ActionDeleteCommand();
            command.setAction((Action) element);
            return command;
View Full Code Here

TOP

Related Classes of org.jbpm.ui.common.command.ProcessDefinitionRemoveSwimlaneCommand

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.