Examples of open()


Examples of org.locationtech.udig.catalog.ui.export.CatalogExport.open()

                final ExportResourceSelectionState layerState = new ExportResourceSelectionState(selection);
               
                CatalogExport exp = new MapSaveStrategy(layerState, mapEditor);

                // open the export dialog
                exp.open();
                
                // Since dialog is opened after this returns return cancelled and we'll make sure the MapSaveStrategy will clear the
                // dirty state if the export takes place.
               
                return Result.EXPORT_WIZARD_RUNNING;
View Full Code Here

Examples of org.locationtech.udig.catalog.ui.workflow.WorkflowWizardDialog.open()

            Workflow workflow=new Workflow(new State[]{resourceSelectionState});
            workflow.setContext(resources);
            WorkflowWizard wizard = new WorkflowWizard(workflow, pageMapping);
            WorkflowWizardDialog dialog = new WorkflowWizardDialog(Display.getCurrent().getActiveShell(), wizard);
            dialog.setBlockOnOpen(true);
            dialog.open();
            if (dialog.getReturnCode()==IDialogConstants.CANCEL_ID )
                return null;
            resources=resourceSelectionState.getResources().keySet();
        }
        return resources;
View Full Code Here

Examples of org.locationtech.udig.mapgraphic.MapGraphicChooserDialog.open()

    public void perform() {
        graphic = null;
        MapGraphicChooserDialog dialog = new MapGraphicChooserDialog(Display.getCurrent().getActiveShell(), false);
        dialog.setBlockOnOpen(true);
       
        dialog.open();
       
        if( dialog.getReturnCode() == Window.OK ){
            List<MapGraphicResource> selectedResources = dialog.getSelectedResources();
            if( selectedResources!=null && !selectedResources.isEmpty()){
                this.graphic = selectedResources.get(0);
View Full Code Here

Examples of org.locationtech.udig.omsbox.ui.CoverageChooserDialog.open()

        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 ) {
                CoverageChooserDialog tree = new CoverageChooserDialog();
                tree.open(settoGroup.getShell(), SWT.SINGLE);

                update(tree.getSelectedResources());
            }
        });
        featuresMapSetButton = new Button(settoGroup, SWT.NONE);
View Full Code Here

Examples of org.locationtech.udig.omsbox.ui.RunningProcessListDialog.open()

            if (runningProcessesMap.size() == 0) {
                MessageDialog.openInformation(shell, "Process List", "No running processes available at the current time");
            } else {
                RunningProcessListDialog dialog = new RunningProcessListDialog();
                dialog.open(shell, SWT.MULTI);
            }

        }
    }
View Full Code Here

Examples of org.locationtech.udig.omsbox.ui.SettingsDialog.open()

            final OmsBoxView dbView = (OmsBoxView) view;

            Shell shell = dbView.getSite().getShell();

            SettingsDialog dialog = new SettingsDialog();
            dialog.open(shell, SWT.MULTI);

            if (dialog.isCancelPressed()) {
                return;
            }
View Full Code Here

Examples of org.locationtech.udig.project.ui.summary.SummaryDialog.open()

            public void run() {
                SummaryDialog d=new SummaryDialog( display.getActiveShell(), Messages.LayerSummary_title
                        + layer.getName(), data );
               
                d.setBlockOnOpen(true);
                d.open();
            }
        });
    }
   
    public static String parseBounds( Envelope env ){
View Full Code Here

Examples of org.locationtech.udig.style.sld.editor.StyleEditorDialog.open()

        original = selectedLayer.getStyleBlackboard();
        EditorPageManager manager = EditorPageManager.loadManager(PrintingPlugin.getDefault(), selectedLayer );
        Shell parentShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
        StyleEditorDialog dialog = StyleEditorDialog.createDialogOn(parentShell, null, selectedLayer, manager);
        dialog.setBlockOnOpen(true);
        int returnCode = dialog.open();
       
        if( returnCode!=Window.OK ){
            selectedLayer.setStyleBlackboard(original);
            original = null;
        }
View Full Code Here

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

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

        button.setText(Messages.CharSetFieldEditor_select);
        button.addListener(SWT.Selection, new Listener(){

            public void handleEvent( Event event ) {
                CharsetSelectionDialog dialog = new CharsetSelectionDialog(parent.getShell(), false, text.getText());
                dialog.open();
                text.setText(((Charset) dialog.getFirstResult()).name());
                store();
            }
           
        });
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.