Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.PreferenceManager


    public void widgetDefaultSelected(SelectionEvent e) {
    }

    public void widgetSelected(SelectionEvent e) {
      if (e.getSource() == openPreferences) {
        PreferenceManager manager = new PreferenceManager();
        manager.addToRoot(new PreferenceNode("Hadoop Installation Directory",
            new HadoopHomeDirPreferencePage()));
        PreferenceDialog dialog = new PreferenceDialog(this.getShell(), manager);
        dialog.create();
        dialog.setMessage("Select Hadoop Installation Directory");
        dialog.setBlockOnOpen(true);
View Full Code Here


       
        ISelection sel = new StructuredSelection(new AnnotationTypeNode(editor, null));
        PropertyPage page = new EditorAnnotationPropertyPage();
        page.setElement(new AnnotationTypeNode(editor, null));
        page.setTitle("Styles");
        PreferenceManager mgr = new PreferenceManager();
        IPreferenceNode node = new PreferenceNode("1", page);
        mgr.addToRoot(node);
        PropertyDialog dialog = new PropertyDialog(getSite().getShell(), mgr, sel);
        dialog.create();
        dialog.setMessage(page.getTitle());
        dialog.open();
      }
View Full Code Here

        this.prefAdmin = prefAdmin;   
        this.log = log;
    }

    public Data[] execute() {
      PreferenceManager prefManager = new PreferenceManager();
     
      addGlobalPreferences(prefManager);
      addLocalPreferences(prefManager);
      addParamPreferences(prefManager);
     
View Full Code Here

  public void dispose() {

  }

  public Object execute(ExecutionEvent event) throws ExecutionException {
    PreferenceManager pm = new PreferenceManager();

    PreferencePage page = new ConfigPreferencePage();
    page.setTitle("TextRuler");
    PreferenceNode node = new PreferenceNode("org.apache.uima.ruta.textruler.config", page);
    pm.addToRoot(node);

    List<PreferenceNode> nodes = pm.getElements(0);
    PreferenceNode top = null;
    for (PreferenceNode n : nodes)
      if (n.getId().equals("org.apache.uima.ruta.textruler.config"))
        top = n;
    if (top != null) {
View Full Code Here

    public void widgetDefaultSelected(SelectionEvent e) {
    }

    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();
View Full Code Here

   */
  protected Object openDialogBox(Control cellEditorWindow) {
    ICSSStyleDeclaration styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) _element)
        .getStyle();

    PreferenceManager manager = new PreferenceManager();
    Shell shell = cellEditorWindow.getShell();

    final CSSPropertyContext context = new CSSPropertyContext(styleDeclaration);
    StyleDialog dialog = new StyleDialog(shell, manager, _element, context);
    if (dialog.open() == Window.OK) {
View Full Code Here

  private void browseButtonPressed() {
    if (_element instanceof ElementCSSInlineStyle) {
      ICSSStyleDeclaration styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) _element)
          .getStyle();

      PreferenceManager manager = new PreferenceManager();
      Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
          .getShell();

      CSSPropertyContext context = new CSSPropertyContext(
          styleDeclaration);
View Full Code Here

        // project);
        // createPreferenceDialogOn.open();

        IWorkbenchPropertyPage page = new WebDirectoryLocation();
        page.setElement(project);
        PreferenceManager mgr = new PreferenceManager();
        IPreferenceNode node = new PreferenceNode("1", page);

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

  }

  public void run() {
    ICSSStyleDeclaration styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) this._element)
        .getStyle();
    PreferenceManager manager = new PreferenceManager();
    EditPartViewer viewer = this._editPart.getViewer();
    Shell shell = viewer.getControl().getShell();

    CSSPropertyContext context = new CSSPropertyContext(styleDeclaration);
    StyleDialog dialog = new StyleDialog(shell, manager, _element, context);
View Full Code Here

    });
  }

 
  private void initPreferences() {
    PreferenceManager p_mngr= this.getWorkbenchConfigurer().getWorkbench().getPreferenceManager();
   
    IPreferenceNode[] rootnodes = p_mngr.getRootSubNodes();
    String id;
    for (IPreferenceNode node : rootnodes) {
      id = node.getId();
      if(id.equals("org.eclipse.debug.ui.DebugPreferencePage")
          || id.equals("org.eclipse.ui.preferencePages.Workbench")
          || id.equals("org.eclipse.wst.xml.ui.preferences.xml")
          || id.equals("org.eclipse.team.ui.TeamPreferences")
          || id.equals("org.eclipse.wst.html.ui.preferences.web"))
        p_mngr.remove(node);
     
     
     
    }
   
View Full Code Here

TOP

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

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.