Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.Dialog.open()


                        }

                    };

                    dialog.setBlockOnOpen(true);
                    dialog.open();
                }
            });

            // initially set to map's crs
            IMap activeMap = ApplicationGIS.getActiveMap();
View Full Code Here


            }

        };

        dialog.setBlockOnOpen(true);
        dialog.open();
        while( !goGo ) {
            if (dialog.getShell().isDisposed()) {
                break;
            }
View Full Code Here

        ValidateNullZero isValidAttr = new ValidateNullZero();

        // test the dialog
        Dialog dialog = isValidAttr.getDialog(Display.getDefault().getActiveShell(), ((ILayer) map.getLayersInternal().get(0)).getSchema());
        dialog.setBlockOnOpen(false);
        dialog.open();
        // check the default xPath
        assertEquals(isValidAttr.xPath,"geom"); // first entry in attributes //$NON-NLS-1$
        //set a new xPath
        isValidAttr.combo.select(1);
        // check the new xPath
View Full Code Here

                page.setContext(toolContext);
                Dialog dialog = new FeatureEditorExtensionProcessor.EditorDialog(new Shell(display
                        .getActiveShell(), SWT.RESIZE | SWT.PRIMARY_MODAL), page);
                dialog.setBlockOnOpen(false);
                page.setFeature(feature);
                dialog.open();

                PlatformUI.getPreferenceStore().putValue(
                        FeatureEditorExtensionProcessor.CURRENT_LOADER_ID, id);

            } catch (CoreException e) {
View Full Code Here

                            }
                            super.okPressed();
                        }
                    };
                    dialog.setBlockOnOpen(true);
                    open = dialog.open();

                } catch (Exception e) {
                    String message = "An error occurred while exporting the maps.";
                    ExceptionDetailsDialog.openError("ERROR", message, IStatus.ERROR, JGrassPlugin.PLUGIN_ID, e);
                }
View Full Code Here

        return composite;
    }

    public static void open(Shell shell, Object result) {
        Dialog dialog = new OperationInvocationResultDialog(shell, result);
        dialog.open();
    }
}
View Full Code Here

          String encoding= fEncodingEditor.getPreferenceStore().getString(fEncodingEditor.getPreferenceName());
          encodingSupport.setEncoding(encoding);
        }
      }
    };
    dialog.open();
  }

  /*
   * @see org.eclipse.ui.texteditor.IUpdate#update()
   */
 
View Full Code Here

  }

  public Object execute(ExecutionEvent event) throws ExecutionException {
    Dialog dialog = PreferencesUtil.createPreferenceDialogOn(HandlerUtil.getActiveShell(event),
            TestingPreferencePage.ID, new String[] { TestingPreferencePage.ID }, null);
    dialog.open();
    return null;
  }

  public boolean isEnabled() {
    return true;
View Full Code Here

                IDialogConstants.OK_ID,
                IDialogConstants.OK_LABEL, true);
            createButton.setFocus();
          }
        };
        dialog.open();
      }
    });
    return mn.createContextMenu(parent);
  }
View Full Code Here

            return Utils.runSWTSync(new Callable<Boolean>() {

                public Boolean call() {
                    Dialog dialog = new FeedbackDialog(EditorAPI.getShell(),
                        saros, FeedbackManager.this, message);
                    return dialog.open() == Window.OK;
                }

            });
        } catch (Exception e) {
            log.error("Exception when trying to open FeedbackDialog.", e);
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.