Examples of PreferenceDialog


Examples of org.eclipse.jface.preference.PreferenceDialog

                                    + "Please configure it. "
                                    + "Eclipse will restart afterwards.");
                }
                reported = true;

                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

Examples of org.eclipse.jface.preference.PreferenceDialog

                final String description = "The log in " + workspace
                        + "/erlide.log may contain more information.";
                ErrorDialog.openError(activeShell, "Erlide can't work properly", message,
                        new Status(IStatus.ERROR, PLUGIN_ID, description));

                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

Examples of org.eclipse.jface.preference.PreferenceDialog

public class ReportProblemHandler extends AbstractHandler {

    @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

Examples of org.eclipse.jface.preference.PreferenceDialog

        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(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

Examples of org.eclipse.jface.preference.PreferenceDialog

   
    String url = HudsonPlugin.getBaseURL();
   
    if (hasError || url == null || url.length() == 0)
    {
      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

Examples of org.eclipse.jface.preference.PreferenceDialog

     
      item = new MenuItem(menu, SWT.NONE);
      item.setText("Preferences...");
      item.addSelectionListener(new SelectionAdapter() {
        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

Examples of org.eclipse.jface.preference.PreferenceDialog

   * Edits the remembered selection in the preference dialog.
   */
  private final void editKeyBinding() {
    // Create a preference dialog on the keys preference page.
    final String keysPageId = "org.eclipse.ui.preferencePages.Keys"; //$NON-NLS-1$
    final PreferenceDialog dialog = PreferencesUtil
        .createPreferenceDialogOn(getShell(), keysPageId, null, binding);

    /*
     * Forget the remembered state (so we don't get stuck editing
     * preferences).
     */
    clearRememberedState();

    // Open the dialog (blocking).
    dialog.open();
  }
View Full Code Here

Examples of org.eclipse.jface.preference.PreferenceDialog

    final Shell shell = activeWorkbenchWindow.getShell();
    if (shell == null) {
      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

Examples of org.eclipse.jface.preference.PreferenceDialog

  /* (non-Javadoc)
   * @see org.eclipse.jface.action.IAction#run()
   */
  public void run() {

    PreferenceDialog dialog = createDialog();
    if (dialog != null) {
      dialog.open();
    }
  }
View Full Code Here

Examples of org.eclipse.jface.preference.PreferenceDialog

   
    /**
     * @return
     */
    protected PreferencesPage createPreferencesPage() {
        PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(), "org.digitalsoul.loom.core.prefs.PreferencesPage", null, null);
        PreferencesPage page = (PreferencesPage) dialog.getSelectedPage();
        return page;
    }
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.