Package org.eclipse.jface.preference

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


    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


    configureVersionsLink.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(new SameShellProvider(versionCombo).getShell(), "gwtVersionsPreferencePage", new String[] { "gwtVersionsPreferencePage", "mainPreferencePage" }, null);
        if (dialog.open() == Window.OK) {
          versionCombo.removeAll();
          initData();
          update();
        }
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

    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

            PreferenceDialog createPreferenceDialogOn = org.eclipse.ui.dialogs.PreferencesUtil
                .createPreferenceDialogOn(
                    Display.getCurrent().getActiveShell(),
                    "com.onpositive.gae.tools.core.license",
                    new String[] {}, null);
            createPreferenceDialogOn.open();
          }
        });
        userId = getUserId();
        if (userId==null||userId.trim().length()!=0) {
          return true;
View Full Code Here

        mgr.addToRoot(node);
        PreferenceDialog dialog = new PreferenceDialog(Display
            .getDefault().getActiveShell(), mgr);
        dialog.create();
        dialog.setMessage(page.getTitle());
        dialog.open();
      }

    });

  }
View Full Code Here

    public Object execute(ExecutionEvent event) throws ExecutionException {
        PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(null,
            "de.fu_berlin.inf.dpp.preferences", null, null);
        if (pref != null)
            pref.open();

        return null;
    }

}
View Full Code Here

  }

  void linkClicked() {
    String pageId = getPreferencePageId();
    PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(), pageId, new String[]{pageId}, null);
    dialog.open();
    fTableViewer.refresh();
  }

  /**
   * Load the last template name used in New JSP File wizard.
View Full Code Here

  }

  private void linkClicked() {
    String pageId = "org.eclipse.ui.preferencePages.ContentTypes"; //$NON-NLS-1$
    PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(), pageId, new String[]{pageId}, null);
    dialog.open();
  }
}
View Full Code Here

  }

  void linkClicked() {
    String pageId = getPreferencePageId();
    PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(getShell(), pageId, new String[]{pageId}, null);
    dialog.open();
    fTableViewer.refresh();
  }

  /**
   * Load the last template name used in New JSP File wizard.
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.