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

Examples of org.locationtech.udig.catalog.jgrass.activeregion.dialogs.CatalogJGrassMapsetTreeViewerDialog


        mapsetButton.setLayoutData(gd2);
        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);
                String windPath = jGrassMapsetGeoResource.getActiveRegionWindowPath();
View Full Code Here


                // String[]{ActiveregionStyleContent.ID});
            }

            // 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();
                style.south = (float) activeRegionWindow.getSouth();
View Full Code Here

        Display.getDefault().syncExec(new Runnable(){

            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);
                    JGrassRegion activeRegionWindow = jGrassMapsetGeoResource.getActiveRegionWindow();
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.jgrass.activeregion.dialogs.CatalogJGrassMapsetTreeViewerDialog

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.