Package org.locationtech.udig.project

Examples of org.locationtech.udig.project.IMap.sendCommandSync()


            public String getName() {
                return "Create Hole Command"; //$NON-NLS-1$
            }
           
        };
        map.sendCommandSync( drillHoleCommand );
    }

}
View Full Code Here


            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

                                                    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
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.