Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.PreferenceManager


   */
  protected Object openDialogBox(Control cellEditorWindow) {
    final ICSSStyleDeclaration styleDeclaration = CSSStyleDeclarationFactory.getInstance().
                getStyleDeclaration(_element, _attr.getAttributeName());
   
    final PreferenceManager manager = new PreferenceManager();
    final Shell shell = cellEditorWindow.getShell();

    final CSSPropertyContext context = new CSSPropertyContext(styleDeclaration);
    final StyleDialog dialog = new StyleDialog(shell, manager, _element, context);
    if (dialog.open() == Window.OK) {
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 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

     @param action The action proxy (not used in this method).
     */
    public void run(IAction action) {
        IPreferenceNode node = _window.getWorkbench().getPreferenceManager()
                .find(PreferenceConstants.PTII_PREFERENCE_ID);
        PreferenceManager manager = new PreferenceManager();
        manager.addToRoot(node);

        PreferenceDialog dialog = new PreferenceDialog(_window.getShell(),
                manager);
        dialog.open();
    }
View Full Code Here

    public ShowFieldPrefs() {
    }

    public void run() {
        this.mgr = new PreferenceManager();

        createPages();
        setPages();

        this.dlg = new PreferenceDialog(null, mgr);
View Full Code Here

       
       
    mProperties = new Action() {
      public void run() {

        PreferenceManager mgr = new PreferenceManager();
        PreferenceDialog dlg = new PreferenceDialog(null, mgr);
        PreferenceNode node = new PreferenceNode("Gateway Client",
            new WorkbenchPreferencePage("Gateway Client"));

        mgr.addToRoot(node);

        dlg.open();
      }
    };
View Full Code Here

          parentShell = null;
        }
      }

      // Create the dialog
      final PreferenceManager preferenceManager = PlatformUI.getWorkbench()
          .getPreferenceManager();
      dialog = new WorkbenchPreferenceDialog(parentShell, preferenceManager);
      if (preferencePageId != null) {
        dialog.setSelectedNode(preferencePageId);
      }
View Full Code Here

  public final Map getParameterValues() {
    if (preferenceMap == null) {
      preferenceMap = new TreeMap();

      final PreferenceManager preferenceManager = PlatformUI
          .getWorkbench().getPreferenceManager();
      collectParameterValues(preferenceMap, preferenceManager
          .getRootSubNodes(), null);
    }

    return preferenceMap;
  }
View Full Code Here

  private void makeActions() {
    action1 = new Action() {
      public void run() {

        PreferenceManager mgr = new PreferenceManager();

        PreferenceDialog dlg = new PreferenceDialog(null, mgr);

        PreferenceNode node = new PreferenceNode("REGISTRY_CLIENT",
            new WorkbenchPreferencePage("Registry Client"));

        mgr.addToRoot(node);

        dlg.open();
      }
    };
View Full Code Here

    configurer.setShowCoolBar(true);
  }
 
  @Override
  public void postWindowOpen() {
    PreferenceManager preferenceManager = PlatformUI.getWorkbench().getPreferenceManager();
    preferenceManager.remove("org.eclipse.ui.preferencePages.Workbench");
    preferenceManager.remove("org.eclipse.update.internal.ui.preferences.MainPreferencePage");
  }
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.