Package org.drools.eclipse.flow.common.editor.core.command

Examples of org.drools.eclipse.flow.common.editor.core.command.ElementConnectionCreateCommand


* Policy for editing an element node.
*/
public class ElementNodeEditPolicy extends GraphicalNodeEditPolicy {

    protected Command getConnectionCompleteCommand(CreateConnectionRequest request) {
        ElementConnectionCreateCommand cmd =
            (ElementConnectionCreateCommand) request.getStartCommand();
        cmd.setConnection((ElementConnection) request.getNewObject());
        cmd.setTarget(getElement());
        return cmd;
    }
View Full Code Here


        cmd.setTarget(getElement());
        return cmd;
    }

    protected Command getConnectionCreateCommand(CreateConnectionRequest request) {
        ElementConnectionCreateCommand cmd =
            new ElementConnectionCreateCommand();
        cmd.setConnection((ElementConnection) request.getNewObject());
        cmd.setSource(getElement());
        request.setStartCommand(cmd);
        return cmd;
    }
View Full Code Here

TOP

Related Classes of org.drools.eclipse.flow.common.editor.core.command.ElementConnectionCreateCommand

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.