Examples of RenameElementCommand


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
Copyright © 2018 www.massapi.com. 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.