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

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


    params.put("dummy", DummyService.url);
   
    List<IService> services = sFactory.createService(params);
    service = services.get(0);
   
    CreateMapCommand cmCommand =
      new CreateMapCommand(null,(List<IGeoResource>) service.resources(null),null);
    ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject()
      .sendSync(cmCommand);
    map = (Map) cmCommand.getCreatedMap();
    done = false;
  }
View Full Code Here


      viewer = new MapViewer(parent, SWT.DOUBLE_BUFFERED);
      List<IGeoResource> resources = new ArrayList<IGeoResource>();
      createResources(resources, monitor);
      IProject activeProject = ApplicationGIS.getActiveProject();

      CreateMapCommand command = new CreateMapCommand("NewMap",resources , activeProject);
      activeProject.sendSync(command);
      Map createdMap = (Map) command.getCreatedMap();
      viewer.setMap(createdMap);
      viewer.init(this);

     
      // ---------------
View Full Code Here

     * @param a
     *            list of IGeoResources. Each resource will be a layer in the
     *            created map.
     */
    public static void createAndOpenMap(List<IGeoResource> resources) {
        CreateMapCommand command = new CreateMapCommand(null, resources, null);
        getActiveProject().sendSync(command);
        openMap(command.getCreatedMap());
    }
View Full Code Here

     *            instance of Project. If it is obtained using the framework
     *            then this will always be the case.
     */
    public static void createAndOpenMap(List<IGeoResource> resources,
            IProject owner) {
        CreateMapCommand command = new CreateMapCommand(null, resources, owner);
        getActiveProject().sendSync(command);
        openMap(command.getCreatedMap());
    }
View Full Code Here

     *            indicates whether to wait for the map to open before
     *            returning.
     */
    public static void createAndOpenMap(List<IGeoResource> resources,
            IProject owner, boolean wait) {
        CreateMapCommand command = new CreateMapCommand(null, resources, owner);
        getActiveProject().sendSync(command);
        openMap(command.getCreatedMap(), wait);
    }
View Full Code Here

        }else{
            cleanedGeoResources = resourceList;
        }
       
        if (map == null) {
            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();
View Full Code Here

     * @param owner The project that will contain the map.
     * @return
     */
    public UndoableMapCommand createCreateMapCommand( String name, List<IGeoResource> layerResources,
            Project owner ) {
        return new CreateMapCommand(name, layerResources, owner);
    }
View Full Code Here

     * @param layerResources the IGeoResources that will make up the layers of the map.
     * @param owner The project that will contain the map.
     * @return
     */
    public UndoableMapCommand createCreateMapCommand( List<IGeoResource> layerResources, Project owner ) {
        return new CreateMapCommand(null, layerResources, owner);
    }
View Full Code Here

     * @param name the name of the map
     * @param layerResources the IGeoResources that will make up the layers of the map.
     * @return
     */
    public UndoableMapCommand createCreateMapCommand( String name, List<IGeoResource> layerResources ) {
        return new CreateMapCommand(name, layerResources, null);
    }
View Full Code Here

     *
     * @param layerResources the objects, (Layers or IGeoResources) that will make up the map.
     * @return
     */
    public UndoableMapCommand createCreateMapCommand( List<IGeoResource> layerResources ) {
        return new CreateMapCommand(null, layerResources, null);
    }
View Full Code Here

TOP

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

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.