Package org.locationtech.udig.tools.edit.commands

Examples of org.locationtech.udig.tools.edit.commands.DefaultCancelEditingCommand


    public boolean isValid( EditToolHandler handler ) {
        return true;
    }

    public UndoableMapCommand getCommand( EditToolHandler handler ) {
        DefaultCancelEditingCommand defaultCancelEditingCommand = new DefaultCancelEditingCommand(handler);
        defaultCancelEditingCommand.setMap(handler.getContext().getMap());
        try {
            defaultCancelEditingCommand.run(new NullProgressMonitor());
        } catch (Exception e) {
            throw (RuntimeException) new RuntimeException( e );
        }
        return new UndoRedoCommand(defaultCancelEditingCommand);
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.tools.edit.commands.DefaultCancelEditingCommand

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.