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

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


* Policy for directly editing elements.
*/
public class ElementDirectEditPolicy extends DirectEditPolicy {

    protected Command getDirectEditCommand(DirectEditRequest request) {
        RenameElementCommand cmd = new RenameElementCommand();
        cmd.setSource((ElementWrapper) getHost().getModel());
        cmd.setOldName(((ElementWrapper) getHost().getModel()).getName());
        cmd.setName((String) request.getCellEditor().getValue());
        return cmd;
    }
View Full Code Here

TOP

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

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.