Package org.eclipse.jface.preference

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


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

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


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

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

    if (workbenchWindow == null) {
      // action has been dispose
      return;
    }
    PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null, null, null, null);
    dialog.open();
  }

  /* (non-Javadoc)
   * Method declared on ActionFactory.IWorkbenchAction.
   */
 
View Full Code Here

        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

      WorkbenchUtils.createPreferenceDialog(
          PreferencePage.ID);

    try {
      prefDialog.setBlockOnOpen(false);
      prefDialog.open();
     
      Object selectedPage = prefDialog.getSelectedPage();
      assertTrue("Selected page is not an instance of PreferencePage", selectedPage instanceof PreferencePage); //$NON-NLS-1$
    } finally {
      prefDialog.close();
View Full Code Here

      WorkbenchUtils.createPreferenceDialog(
          PreferencePage.ID);

    try {
      prefDialog.setBlockOnOpen(false);
      prefDialog.open();
     
      PreferencePage selectedPage = (PreferencePage)prefDialog.getSelectedPage();
      selectedPage.performOk();
    } finally {
      prefDialog.close();
View Full Code Here

    link.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        try {
          PreferenceDialog preferenceDialog = PreferencesUtil.createPreferenceDialogOn(shell, PHPsPreferencePage.ID, new String[] {}, null);
          preferenceDialog.open();
          MissingExecutableDialog.this.close();
        } catch (Exception e2) {
          Logger.logException(e2);
        }
      }
View Full Code Here

  @Override
  public Object execute(final ExecutionEvent event) throws ExecutionException {
    PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(
        PlatformUI.getWorkbench().getDisplay().getActiveShell(),
        "code.satyagraha.gfm.viewer.preferences.PreferencePage", null, null);
    pref.open();
    return null;
  }
}
View Full Code Here

    mgr.addToRoot(node);
    PreferenceDialog dialog = new PreferenceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), mgr);
    dialog.setPreferenceStore(Activator.getDefault().getPreferenceStore());
    dialog.create();
    dialog.setMessage(page.getTitle());
    dialog.open();
  }

  public void selectionChanged(IAction action, ISelection selection) {
    // TODO Auto-generated method stub
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.