Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.IPreferenceNode


      if (result == SWT.YES) {
        IPreferencePage page = new BrowserPreferencePage();
        page.setTitle("Browsers");
        page.setDescription("You can define the  primary and secondary browsers that are launched when you press F12(primary) and Shift+F12(secondary)");
        PreferenceManager mgr = new PreferenceManager();
        IPreferenceNode node = new PreferenceNode("1", page);
        mgr.addToRoot(node);
        PreferenceDialog dialog = new PreferenceDialog(this.editor.getSite().getShell(), mgr);
        dialog.create();
        dialog.setMessage(page.getTitle());
        dialog.open();
View Full Code Here


  /**
   * Displays specified preferences or property page and returns <code>true</code> if <code>PreferenceDialog.OK</code>
   * was selected.
   */
  public static boolean showPreferenceDialog(String propertyPageId, IProject project, Map<String, Object> data) {
    IPreferenceNode targetNode = null;

    PropertyPageManager pageManager = new PropertyPageManager();
    PropertyPageContributorManager.getManager().contribute(pageManager, project);

    IPreferenceNode[] nodes = pageManager.getRootSubNodes();
View Full Code Here

TOP

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

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.