Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.PreferenceDialog.open()


                final PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(
                        PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
                        "org.erlide.ui.preferences.runtimes", null, null);
                if (pref != null) {
                    if (pref.open() == Window.OK) {
                        ErlLogger
                                .info("Restarting workbench after initial runtime configuration...");
                        PlatformUI.getWorkbench().restart();
                    }
                }
View Full Code Here


    @Override
    public Object execute(final ExecutionEvent event) throws ExecutionException {
        final PreferenceDialog dlg = PreferencesUtil.createPreferenceDialogOn(null,
                "org.erlide.ui.reporting", null, null);
        dlg.open();
        return null;
    }

}
View Full Code Here

        mainGeneralSettingsLink.setText("<A>Configure Workspace Settings...</A>");
        mainGeneralSettingsLink.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(tabs.getShell(),
                    preferencePageId, null, null);
                dialog.open();
            }
        });
        mainGeneralSettingsLink.setLayoutData(new GridData(SWT.END, SWT.CENTER, false, false));

        Label horizontalLine = new Label(headerComposite, SWT.SEPARATOR | SWT.HORIZONTAL);
View Full Code Here

    {
      PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(
        Display.getDefault().getActiveShell(), HudsonPreferencePage.PAGE_ID, null, null);
     
      if (dialog != null)
        dialog.open();
    }
    else
    {
      IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
     
View Full Code Here

        public void widgetSelected(SelectionEvent event) {
          PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(
            Display.getDefault().getActiveShell(), HudsonPreferencePage.PAGE_ID, null, null);
         
          if (dialog != null)
            dialog.open();
        }
      });
     
      new MenuItem(menu, SWT.SEPARATOR);
     
View Full Code Here

     * preferences).
     */
    clearRememberedState();

    // Open the dialog (blocking).
    dialog.open();
  }

  /**
   * Handles the default selection event on the table of possible completions.
   * This attempts to execute the given command.
View Full Code Here

      throw new ExecutionException("no shell for active workbench window"); //$NON-NLS-1$
    }

    final PreferenceDialog dialog = PreferencesUtil
        .createPreferenceDialogOn(shell, preferencePageId, null, null);
    dialog.open();

    return null;
  }

}
View Full Code Here

   */
  public void run() {

    PreferenceDialog dialog = createDialog();
    if (dialog != null) {
      dialog.open();
    }
  }

  /**
   * Create the dialog for the receiver. If no pages are found, an informative
View Full Code Here

            new HadoopHomeDirPreferencePage()));
        PreferenceDialog dialog = new PreferenceDialog(this.getShell(), manager);
        dialog.create();
        dialog.setMessage("Select Hadoop Installation Directory");
        dialog.setBlockOnOpen(true);
        dialog.open();

        updateHadoopDirLabelFromPreferences();
      } else if (e.getSource() == browse) {
        DirectoryDialog dialog = new DirectoryDialog(this.getShell());
        dialog
View Full Code Here

      } else if (e.getSource() == browse) {
        DirectoryDialog dialog = new DirectoryDialog(this.getShell());
        dialog
            .setMessage("Select a hadoop installation, containing hadoop-X-core.jar");
        dialog.setText("Select Hadoop Installation Directory");
        String directory = dialog.open();

        if (directory != null) {
          location.setText(directory);

          if (!validateHadoopLocation()) {
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.