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

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


                }
            }
           
            if (gridLayers.size() == 0) {
                this.isLegendViewAddingGrid = true;
                this.map.sendCommandASync(new AddLayersCommand(Collections.singletonList(LegendViewUtils.getGridMapGraphic())));
            }
           
        }
               
    }
View Full Code Here


                }
            }
            if (dataHandles.isEmpty()) {
                return; // nothing to add
            }
            map.sendCommandASync(new AddLayersCommand(dataHandles));
        }
View Full Code Here

        }else{
            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

    @Override
    public void perform( IProgressMonitor monitor ) {
        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

            CreateMapCommand cmCommand = new CreateMapCommand(null, cleanedGeoResources, project);
            project.sendSync(cmCommand);
            map = cmCommand.getCreatedMap();
            layers=map.getMapLayers();
        } else {
            AddLayersCommand alCommand = new AddLayersCommand(cleanedGeoResources, startPosition2);
            map.sendCommandSync(alCommand);
            layers=alCommand.getLayers();
        }

        if (!ApplicationGISInternal.getOpenMaps().contains(map)) {
            openMap(map, wait);
        }
View Full Code Here

     * @param index the zorder where the layer will be added.
     * @return a new {@linkplain AddLayersCommand}object that deletes the feature.
     * @see AddLayersCommand
     */
    public UndoableMapCommand createAddManyLayers( Collection layers, int index ) {
        return new AddLayersCommand(layers, index);
    }
View Full Code Here

     * @param evaluationObject the layer to add to the map.
     * @return a new {@linkplain AddLayersCommand}object that deletes the feature.
     * @see AddLayersCommand
     */
    public UndoableMapCommand createAddManyLayers( Collection layers ) {
        return new AddLayersCommand(layers);
    }
View Full Code Here

TOP

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

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.