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);
}