Examples of PreferenceManager


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 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

Examples of org.eclipse.jface.preference.PreferenceManager

   */
  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

Examples of org.eclipse.jface.preference.PreferenceManager

  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

Examples of org.eclipse.jface.preference.PreferenceManager

        // 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

Examples of org.eclipse.jface.preference.PreferenceManager

  }

  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

Examples of org.eclipse.jface.preference.PreferenceManager

    });
  }

 
  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

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

Examples of org.eclipse.jface.preference.PreferenceManager

  }

  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

Examples of org.eclipse.jface.preference.PreferenceManager

  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

Examples of org.eclipse.jface.preference.PreferenceManager

     @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
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.