Package org.eclipse.ui.internal.dialogs

Examples of org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog


  public void execute() {
    IWorkbenchWindow window = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow();
    if (window != null) {
      WorkbenchPreferenceDialog dialog = WorkbenchPreferenceDialog
          .createDialogOn(window.getShell(), preferenceNode.getId());
      dialog.open();
    }
  }
View Full Code Here


    }

    public static int openPreferencePage(String pageId) {
        PreferenceManager pm = WorkbenchPlugin.getDefault().getPreferenceManager();
        if (pm != null) {
            PreferenceDialog d = new WorkbenchPreferenceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), pm);
            d.setSelectedNode(pageId);
            d.create();
            return d.open();  
        }
        return Window.CANCEL;}
View Full Code Here

    IPreferenceNode node = this.workbench.getPreferenceManager().find("org.cfeclipse.cfml.preferences.CFMLPreferencePage").findSubNode("org.cfeclipse.cfml.preferences.EditorPreferencePage").findSubNode("org.cfeclipse.cfml.preferences.CFMLColorsPreferencePage");
    getFieldEditorParent().getParent().traverse(SWT.TRAVERSE_TAB_NEXT);
    getFieldEditorParent().getParent().redraw();
    System.err.println(node.toString());
   
    WorkbenchPreferenceDialog woot = (WorkbenchPreferenceDialog)getContainer();
    Object wee = woot.getSelectedPage();
    ISelection borg = woot.getTreeViewer().getSelection();
    woot.getTreeViewer().setSelection(borg);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog

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.