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

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


                makeSomeColor(path);

            } else if (selectedButton.equals(loadFromMapButton)) {

                JGRasterChooserDialog tree = new JGRasterChooserDialog(null);
                tree.open(this.getShell(), SWT.SINGLE);
                update(tree.getSelectedResources());

            } else if (selectedButton.equals(exportToFileButton)) {

                FileDialog fileDialog = new FileDialog(this.getShell(), SWT.SAVE);
                fileDialog.setText("Choose file");
View Full Code Here


            makeSomeCategories(path);

        } else if (selectedButton.equals(loadFromMapButton)) {

            JGRasterChooserDialog tree = new JGRasterChooserDialog(null);
            tree.open(this.getShell(), SWT.SINGLE);

            update(tree.getSelectedResources());
        }
    }
View Full Code Here

    private void getMapPath( final IBlackboard blackboard ) {
        run = new Thread(new Runnable(){
            public void run() {
                display.syncExec(new Runnable(){
                    public void run() {
                        JGRasterChooserDialog chooserDialog = new JGRasterChooserDialog(null);
                        chooserDialog.open(shell, SWT.SINGLE);
                        List<JGrassMapGeoResource> resources = chooserDialog.getSelectedResources();
                        if (resources != null && resources.size() > 0) {
                            JGrassMapGeoResource res = resources.get(0);
                            File mapFile = res.getMapFile();
                            legendStyle.mapPath = mapFile.getAbsolutePath();
                            blackboard.put(RasterLegendStyleContent.ID, legendStyle);
View Full Code Here

        gd2.horizontalAlignment = GridData.HORIZONTAL_ALIGN_END;
        mapButton.setLayoutData(gd2);
        mapButton.setText(Messages.getString("LegendGraphicStyleConfigurator.browse")); //$NON-NLS-1$
        mapButton.addSelectionListener(new SelectionAdapter(){
            public void widgetSelected( SelectionEvent e ) {
                JGRasterChooserDialog cDialog = new JGRasterChooserDialog(null);
                cDialog.open(mapButton.getShell(), SWT.SINGLE);

                List<JGrassMapGeoResource> selectedResource = cDialog.getSelectedResources();
                JGrassMapGeoResource jGrassMapGeoResource = selectedResource.get(0);
                File mapFile = jGrassMapGeoResource.getMapFile();
                String name = mapFile.getName();
                mapNameLabel.setText(name);
                if (style == null)
View Full Code Here

        rasterMapSetButton = new Button(settoGroup, SWT.NONE);
        rasterMapSetButton.setText("set region to raster map");
        rasterMapSetButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL));
        rasterMapSetButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter(){
            public void widgetSelected( org.eclipse.swt.events.SelectionEvent e ) {
                JGRasterChooserDialog tree = new JGRasterChooserDialog(null);
                tree.open(settoGroup.getShell(), SWT.SINGLE);

                update(tree.getSelectedResources());
            }
        });
        featuresMapSetButton = new Button(settoGroup, SWT.NONE);
        featuresMapSetButton.setText("set region to vector map");
        featuresMapSetButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL));
        featuresMapSetButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter(){
            public void widgetSelected( org.eclipse.swt.events.SelectionEvent e ) {
                FeatureChooserDialog tree = new FeatureChooserDialog();
                tree.open(settoGroup.getShell(), SWT.SINGLE);

                update(tree.getSelectedResources());
            }
        });
        resetToActiveButton = new Button(settoGroup, SWT.NONE);
        resetToActiveButton.setText("reset back to actual region");
        resetToActiveButton.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL));
View Full Code Here

TOP

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

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.