Package org.eclipse.ui

Examples of org.eclipse.ui.IDecoratorManager


      _designContainer.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());     
    } catch (CoreException e) {     
    } 
   
    if (_directAccessDefaultChanged) {
      IDecoratorManager decoratorManager = Activator.getDefault().getWorkbench().getDecoratorManager();
          if (decoratorManager.getEnabled(ExternalResourceIds.DECORATOR_TML_FILE)) {
            decoratorManager.update(ExternalResourceIds.DECORATOR_TML_FILE);              
          }
    }
    _directAccessDefaultChanged = false;
  }
View Full Code Here


        e1.printStackTrace();
      }
    }
  }
  public static PerlDecorator getPerlDecorator() {
    IDecoratorManager decoratorManager = PerlEditorPlugin.getDefault()
        .getWorkbench().getDecoratorManager();

    if (decoratorManager
        .getEnabled("org.epic.core.decorators.PerlDecorator")) {
      return (PerlDecorator) decoratorManager
          .getBaseLabelProvider("org.epic.core.decorators.PerlDecorator");
    }
    return null;
  }
View Full Code Here

        this.viewer=viewer;
    }

    /** Check to see that our lightweight decorators make it into the mix */
    static final ILabelDecorator getWorkbenchDecorators(){
        IDecoratorManager manager = PlatformUI.getWorkbench().getDecoratorManager();
        ILabelDecorator decorator = manager.getLabelDecorator();
        return decorator;
    }
View Full Code Here

      }
    });
    }

      public static void performUpdateDecor(IProject proj) {
        IDecoratorManager dm = DerbyPlugin.getDefault().getWorkbench().getDecoratorManager();
        DerbyIsRunningDecorator decorator = (DerbyIsRunningDecorator)dm.getBaseLabelProvider(CommonNames.RUNDECORATOR);
        decorator.startUpdateDecor(proj);
        }
View Full Code Here

     */
    public static void updateDecoration() {
        final IWorkbench workbench = Activator.getDefault().getWorkbench();
        workbench.getDisplay().syncExec(new Runnable() {
            public void run() {
                IDecoratorManager manager = workbench.getDecoratorManager();
                manager.update(GuvnorDecorator.DECORATOR_ID);
            }
        });
    }
View Full Code Here

  }

  protected TreeViewer createTreeViewer(Composite parent, int style) {
    TreeViewer viewer = super.createTreeViewer(parent, style);

    IDecoratorManager decoratorMgr = PlatformUI.getWorkbench()
        .getDecoratorManager();
    if (decoratorMgr.getEnabled("org.eclipse.php.ui.override.decorator")) { //$NON-NLS-1$
      ((ScriptUILabelProvider) viewer.getLabelProvider())
          .addLabelDecorator(new OverrideIndicatorLabelDecorator());
    }
    return viewer;
  }
View Full Code Here

      }
    });
    }

      public static void performUpdateDecor(IProject proj) {
        IDecoratorManager dm = DerbyPlugin.getDefault().getWorkbench().getDecoratorManager();
        DerbyIsRunningDecorator decorator = (DerbyIsRunningDecorator)dm.getBaseLabelProvider(CommonNames.RUNDECORATOR);
        decorator.startUpdateDecor(proj);
        }
View Full Code Here

  private final List listeners = new ArrayList();
  public final static String ID = "org.cfeclipse.cfml.editors.decoration.URLDecorator";
 

  public static URLDecorator getURLDecorator() {
    IDecoratorManager decoratorManager = CFMLPlugin.getDefault()
        .getWorkbench().getDecoratorManager();

    if (decoratorManager
        .getEnabled(ID)) {
      return (URLDecorator) decoratorManager
          .getBaseLabelProvider(ID);
    }
    return null;
  }
View Full Code Here

  public final static String ID = "org.cfeclipse.cfml.frameworks.decorator";
 
  private Log logger = LogFactory.getLog(ConfigFileDecorator.class);
 
  public static ConfigFileDecorator getConfigFileDecorator() {
    IDecoratorManager decoratorManager = Activator.getDefault().getWorkbench().getDecoratorManager();

    if (decoratorManager.getEnabled(ID)) {
      return (ConfigFileDecorator) decoratorManager.getBaseLabelProvider(ID);
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IDecoratorManager

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.