Package org.locationtech.udig.catalog.jgrass.activeregion.dialogs

Examples of org.locationtech.udig.catalog.jgrass.activeregion.dialogs.CatalogJGrassMapsetTreeViewerDialog.open()


        mapsetButton.setText("Browse");
        mapsetButton.addSelectionListener(new SelectionAdapter(){

            public void widgetSelected( SelectionEvent e ) {
                CatalogJGrassMapsetTreeViewerDialog cDialog = new CatalogJGrassMapsetTreeViewerDialog();
                cDialog.open(mapsetButton.getShell());
                List<JGrassMapsetGeoResource> selectedLayers = cDialog.getSelectedLayers();
                if (selectedLayers == null || selectedLayers.size() == 0) {
                    return;
                }
                jGrassMapsetGeoResource = selectedLayers.get(0);
View Full Code Here


            }

            // first time choose the mapset
            if (style.windPath == null) {
                CatalogJGrassMapsetTreeViewerDialog mapsetDialog = new CatalogJGrassMapsetTreeViewerDialog();
                mapsetDialog.open(parent.getShell());
                jGrassMapsetGeoResource = mapsetDialog.getSelectedLayers().get(0);

                JGrassRegion activeRegionWindow = jGrassMapsetGeoResource.getActiveRegionWindow();
                style.windPath = jGrassMapsetGeoResource.getActiveRegionWindowPath();
                style.north = (float) activeRegionWindow.getNorth();
View Full Code Here

            public void run() {
                try {
                    CatalogJGrassMapsetTreeViewerDialog mapsetDialog = new CatalogJGrassMapsetTreeViewerDialog();
                    Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
                    mapsetDialog.open(shell);
                    List<JGrassMapsetGeoResource> selectedLayers = mapsetDialog.getSelectedLayers();
                    if (selectedLayers==null || selectedLayers.size() == 0) {
                        return;
                    }
                    JGrassMapsetGeoResource jGrassMapsetGeoResource = selectedLayers.get(0);
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.