Examples of AddFeatureCommand


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

    public UndoableMapCommand createCopyFeaturesCommand( ILayer sourceLayer, Filter filter, ILayer destinationLayer) {
        return new CopyFeaturesCommand(sourceLayer, filter, (Layer) destinationLayer);
    }

    public UndoableMapCommand createAddFeatureCommand( SimpleFeature feature, ILayer layer ) {
        return new AddFeatureCommand(feature,layer );
    }
View Full Code Here

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

        monitor.beginTask(getName(), 14);
        monitor.worked(2);
        boolean prev = layer.eDeliver();
        try {
            layer.eSetDeliver(false);
            addFeatureCommand = new AddFeatureCommand(feature, layer);
            addFeatureCommand.setMap(getMap());
            SubProgressMonitor subProgressMonitor = new SubProgressMonitor(monitor, 10);
           
            // run the addFeature command (should result in a featureId we can use for selection)
            addFeatureCommand.run(subProgressMonitor);
View Full Code Here

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

        monitor.beginTask(getName(), 14);
        monitor.worked(2);
        boolean prev = layer.eDeliver();
        try {           
            layer.eSetDeliver(false);
            addFeatureCommand = new AddFeatureCommand(feature, layer);
            addFeatureCommand.setMap(getMap());
            SubProgressMonitor subProgressMonitor = new SubProgressMonitor(monitor, 10);
            addFeatureCommand.run(subProgressMonitor);
            subProgressMonitor.done();
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.