Package org.locationtech.udig.project.internal

Examples of org.locationtech.udig.project.internal.Map.sendCommandASync()


                            env = JTS.transform(env, map.getEditManager().getEditLayer()
                                    .layerToMapTransform());
                        } catch (Exception e1) {
                            ProjectUIPlugin.log(null, e1);
                        }
                        map.sendCommandASync(new SetViewportBBoxCommand(env, map.getViewportModel().getCRS()));
                        PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
                                .activate(editor);
                    }

                });
View Full Code Here


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

        map.sendCommandASync(composite);
    }

    private void addLegend() {
        Map map = ApplicationGISInternal.getActiveMap();
        try {
View Full Code Here

                    ProjectUIPlugin.log("exception getting bounds", e); //$NON-NLS-1$
                }
            }

            if (!bounds.isNull()) {
                map.sendCommandASync(new SetViewportBBoxCommand(bounds));
            }
        }

        /**
         * Attempts to translate the fitted envelope so that the center of the previous view is
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.