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

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


            map=(Map) getDestination();
        }

        Collection<Layer> layers = toCollection(data2);
        map.sendCommandASync( new AddLayersCommand(layers) );
        layers.iterator().next().getMap().sendCommandASync(new DeleteLayersCommand(layers.toArray(new Layer[0])));
    }
View Full Code Here


        Collection<Layer> layers = MoveLayerDropAction.toCollection(getData());
       
        Layer layer=(Layer) getDestination();
        layer.getMap().sendCommandASync(new AddLayersCommand(layers, layer.getZorder()));
       
        layers.iterator().next().getMap().sendCommandASync(new DeleteLayersCommand(layers.toArray(new Layer[0])));
    }
View Full Code Here

     * @param evaluationObject the layer to delete
     * @return a new {@linkplain DeleteLayerCommand}object that deletes the layer.
     * @see DeleteLayerCommand
     */
    public UndoableMapCommand createDeleteLayers( ILayer[] layers ) {
        return new DeleteLayersCommand(layers);
    }
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 DeleteLayersCommand(new ILayer[]{layer});
    }
View Full Code Here

                                                    toRemove.add(mapLayers.get(i));
                                                }

                                            }
                                            if (toRemove.size() > 0)
                                                activeMap.sendCommandSync(new DeleteLayersCommand((ILayer[]) toRemove
                                                        .toArray(new ILayer[toRemove.size()])));

                                            // rename the map
                                            renameGrassRasterMap(mapsetName, oldMapName, newMapName);
                                            // remove old map
View Full Code Here

                                                        toRemove.add(mapLayers.get(i));
                                                    }

                                                }
                                                if (toRemove.size() > 0)
                                                    activeMap.sendCommandSync(new DeleteLayersCommand((ILayer[]) toRemove
                                                            .toArray(new ILayer[toRemove.size()])));

                                            } catch (Exception e) {
                                                MessageDialog.openInformation(shell, "Information",
                                                        "Problems occurred while removing the map.");
View Full Code Here

TOP

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

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.