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

Examples of org.locationtech.udig.project.internal.commands.DeleteLayerCommand


     * @param layer the layer to delete
     * @return a new {@linkplain DeleteLayerCommand}object that deletes the layer.
     * @see DeleteLayerCommand
     */
    public UndoableMapCommand createDeleteLayer( ILayer layer ) {
        return new DeleteLayerCommand((Layer) layer);
    }
View Full Code Here


     * @param layer the layer to delete
     * @return a new {@linkplain DeleteLayerCommand}object that deletes the layer.
     * @see DeleteLayerCommand
     */
    public UndoableMapCommand createDeleteLayer( Layer layer ) {
        return new DeleteLayerCommand(layer);
    }
View Full Code Here

            }
        }

        UndoableComposite composite = new UndoableComposite();
        for( ILayer layer : toRemove ) {
            composite.getCommands().add( new DeleteLayerCommand((Layer)layer) );
        }

        map.sendCommandASync(composite);
    }
View Full Code Here

    Iterator<ILayer> iterator = mapLayers.iterator();
    while (iterator.hasNext()) {
      ILayer layer = iterator.next();
      IGeoResource geoResource = layer.findGeoResource(MapMarksGraphics.class);
      if (geoResource != null) {
        map.sendCommandASync(new DeleteLayerCommand((Layer) layer));
        break;
      }
    }
  }
View Full Code Here

     * @param layer the layer to delete
     * @return a new {@linkplain DeleteLayerCommand}object that deletes the layer.
     * @see DeleteLayerCommand
     */
    public UndoableMapCommand createDeleteLayer( ILayer layer ) {
        return new DeleteLayerCommand((Layer) layer);
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.commands.DeleteLayerCommand

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.