Package org.jbpm.ui.common.command

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


public class ActionComponentEditPolicy extends ComponentEditPolicy {

    @Override
    protected Command createDeleteCommand(GroupRequest request) {
        ActionDeleteCommand deleteCommand = new ActionDeleteCommand();
        deleteCommand.setAction((Action) getHost().getModel());
        return deleteCommand;
    }
View Full Code Here


            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;
        } else {
            throw new IllegalArgumentException("Unknown element " + element);
        }
    }
View Full Code Here

TOP

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

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.