Package org.locationtech.udig.ui

Examples of org.locationtech.udig.ui.CRSChooserDialog.open()


                    .calculateBounds(button));
            dialog.open();
            */
            CoordinateReferenceSystem crs = getMap().getViewportModel().getCRS();           
            CRSChooserDialog dialog = new CRSChooserDialog( getSite().getShell(), crs );
            int code = dialog.open();
            if( Window.OK == code ){
                CoordinateReferenceSystem result = dialog.getResult();
                if( !result.equals(crs)){
                    getMap().sendCommandSync(new ChangeCRSCommand(result));
                    updateCRS();
View Full Code Here


        crsButton.setText("...");
        crsButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter(){
            public void widgetSelected( org.eclipse.swt.events.SelectionEvent e ) {
                CoordinateReferenceSystem crs = ApplicationGIS.getActiveMap().getViewportModel().getCRS();
                CRSChooserDialog dialog = new CRSChooserDialog(crsButton.getShell(), crs);
                int code = dialog.open();
                if (Window.OK == code) {
                    CoordinateReferenceSystem result = dialog.getResult();
                    crsText.setText(result.getName().toString());
                    crsText.setData(result);
                    newCrs = result;
View Full Code Here

            initVal = allDatastores[0].getSchema()
                .getCoordinateReferenceSystem();
          }
          CRSChooserDialog dialog = new CRSChooserDialog(display
              .getActiveShell(), initVal);
          if (dialog.open() == Window.CANCEL) {
            return;
          }

          CoordinateReferenceSystem result = dialog.getResult();
          if (result != null) {
View Full Code Here

        crsButton.setText(Messages.GraticuleCRSConfigurator_Select);
        crsButton.addSelectionListener(new SelectionAdapter(){
            public void widgetSelected( SelectionEvent e ) {
                CoordinateReferenceSystem crs = getCRS(getStyle());
                CRSChooserDialog dialog = new CRSChooserDialog(crsButton.getShell(), crs);
                int code = dialog.open();
                if (Window.OK == code) {
                    try {
                        crs = dialog.getResult();
                        crsText.setText(EPSG+CRS.lookupEpsgCode(crs,false));
                    } catch (FactoryException ex) {
View Full Code Here

                    .calculateBounds(button));
            dialog.open();
            */
            CoordinateReferenceSystem crs = getMap().getViewportModel().getCRS();           
            CRSChooserDialog dialog = new CRSChooserDialog( getSite().getShell(), crs );
            int code = dialog.open();
            if( Window.OK == code ){
                CoordinateReferenceSystem result = dialog.getResult();
                if( !result.equals(crs)){
                    getMap().sendCommandSync(new ChangeCRSCommand(result));
                    updateCRS();
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.