Package org.locationtech.udig.project.internal.commands.edit

Examples of org.locationtech.udig.project.internal.commands.edit.DeleteManyFeaturesCommand


        }
        private CompositeCommand deleteManyFeatures( Id filter ) {
            CompositeCommand composite=new CompositeCommand();
            composite.setName(Messages.TableView_compositeName);
            composite.getCommands().add(new SetEditingFlag(true));
            composite.getCommands().add(new DeleteManyFeaturesCommand(layer,filter));
            composite.getCommands().add(new DeleteFromTableCommand(layer));
            composite.getFinalizerCommands().add(new SetEditingFlag(false));
            return composite;
        }
View Full Code Here


    public UndoableMapCommand createResetEditFeatureCommand() {
        return new ResetEditFeatureCommand();
    }

    public MapCommand createDeleteFeatures( ILayer selectedLayer, Filter filter ) {
        return new DeleteManyFeaturesCommand(selectedLayer, filter);
    }
View Full Code Here

    protected void operate( ILayer layer, AdaptingFilter filter, Object context ) {
        Pair<Boolean, Integer> pair = (Pair<Boolean, Integer>) context;
        if( pair == null || pair.right() == Window.CANCEL){
            return; // nothing to do
        }
        layer.getMap().sendCommandASync(new DeleteManyFeaturesCommand(layer, filter));
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.commands.edit.DeleteManyFeaturesCommand

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.