Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.PreferenceDialog


  }

  public void openPreferencePage(final String preferencePageId) {
    runInUiThread(new Runnable() {
      @Override public void run() {
        PreferenceDialog dialog = createPreferenceDialogOn(activeShell().widget, preferencePageId, null, null);
        dialog.setBlockOnOpen(false);
        dialog.open();
      }
    });
  }
View Full Code Here


            String awhome = pref.getString(Activator.PrefAWPath);
            if (awhome == null || awhome.length() == 0 || !new File(awhome).exists()) {
                Display.getDefault().asyncExec(new Runnable() {
                    public void run ()
                    {
                        PreferenceDialog pd = PreferencesUtil.createPreferenceDialogOn(
                            PlatformUI.getWorkbench().getWorkbenchWindows()[0].getShell(),
                            "ariba.ideplugin.eclipse.preferences.AWPreferencesPage",
                            new String[0], null);
                        pd.open();
                    }
                });
            }
        }
    }
View Full Code Here

        mainGeneralSettingsLink = new Link(headerComposite, SWT.NONE);
        mainGeneralSettingsLink.setFont(headerComposite.getFont());
        mainGeneralSettingsLink.setText("<A>Configure Workspace Settings...</A>");
        mainGeneralSettingsLink.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(),
                    IvyPreferencePage.PEREFERENCE_PAGE_ID, 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

        retrieveGeneralSettingsLink = new Link(headerComposite, SWT.NONE);
        retrieveGeneralSettingsLink.setFont(composite.getFont());
        retrieveGeneralSettingsLink.setText("<A>Configure Workspace Settings...</A>");
        retrieveGeneralSettingsLink.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(),
                    IvyPreferencePage.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 = new Link(headerComposite, SWT.NONE);
        advancedGeneralSettingsLink.setFont(composite.getFont());
        advancedGeneralSettingsLink.setText("<A>Configure Workspace Settings...</A>");
        advancedGeneralSettingsLink.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(),
                    IvyPreferencePage.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

        top.add(node);
      }
    }

    Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
    PreferenceDialog pd = new PreferenceDialog(shell, pm);
    pd.setPreferenceStore(TextRulerPlugin.getDefault().getPreferenceStore());
    pd.create();
    pd.open();

    // Dialog dialog = PreferencesUtil.createPreferenceDialogOn(HandlerUtil.getActiveShell(event),
    // TestingPreferencePage.ID, new String[] { TestingPreferencePage.ID }, null);
    // dialog.open();
    return null;
View Full Code Here

  public OpenPreferencesAction() {
    super("Preferences");
  }

  public void run() {
    PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(GOIMActionHelper.getShell(), GOIMAccountPreferences.ID, null, null);
    dialog.open();
  }
View Full Code Here

      if (workbenchWindow == null) {
        // action has been dispose
        return;
      }
      //PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(workbenchWindow.getShell(), GOIMAccountPreferences.ID, new String[] { GOIMPreferencePage.ID,GOIMAccountPreferences.ID, GOIMGames.ID, Icons.ID }, null);
      PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(workbenchWindow.getShell(), GOIMAccountPreferences.ID, null, null);
      //dialog.setSelectedNode(GOIMPreferencePage.ID);
      dialog.open();
    }
View Full Code Here

    public void widgetSelected(SelectionEvent e) {
      if (e.getSource() == openPreferences) {
        PreferenceManager manager = new PreferenceManager();
        manager.addToRoot(new PreferenceNode("Hadoop Installation Directory", new MapReducePreferencePage()));
        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.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

    Button setButton = new Button(composite, SWT.PUSH);
    setButton.setText("Set...");
    setButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getContainer().getShell(), "mainPreferencePage", null, null);
        dialog.open();
        locationText.setText(Preferences.getString(Constants.GWT_HOME_PREFERENCE));
        updateStatus();
      }
    });
View Full Code Here

TOP

Related Classes of org.eclipse.jface.preference.PreferenceDialog

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.