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

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


    protected Command getSplitTransitionCommand(Request request) {
        // TODO error when using this split, nodes do not know connections
        if (elementConnectionFactory == null) {
            throw new IllegalStateException("DefaultElementConnectionFactory is null");
        }
        SplitConnectionCommand cmd = new SplitConnectionCommand();
        cmd.setElementConnection(((ElementConnection) getHost().getModel()));
        cmd.setNewSecondConnection(elementConnectionFactory.createElementConnection());
        cmd.setParent(((ProcessWrapper) ((ElementConnectionEditPart) getHost())
            .getSource().getParent().getModel()));
        cmd.setNewElement(((ElementWrapper) ((CreateRequest) request).getNewObject()));
        return cmd;
    }
View Full Code Here

TOP

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

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.