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

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


* Policy for performing layout of a process.
*/
public class ElementContainerLayoutEditPolicy extends XYLayoutEditPolicy {
   
    protected Command getCreateCommand(CreateRequest request) {
        AddElementCommand command = new AddElementCommand();
        command.setParent((ElementContainer) getHost().getModel());
        ElementWrapper element = (ElementWrapper) request.getNewObject();
        element.setConstraint((Rectangle) getConstraintFor(request));
        command.setChild(element);
        return command;
    }
View Full Code Here

TOP

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

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.