Package org.eclipse.dltk.ui

Examples of org.eclipse.dltk.ui.ScriptElementImageDescriptor


          int adornmentFlags = ScriptElementImageProvider
              .computeAdornmentFlags(
                  method.getDeclaringType(),
                  ScriptElementImageProvider.SMALL_ICONS
                      | ScriptElementImageProvider.OVERLAY_ICONS);
          ScriptElementImageDescriptor descriptor = new ScriptElementImageDescriptor(
              typeImageDescriptor, adornmentFlags,
              ScriptElementImageProvider.SMALL_SIZE);
          completionProposal.setImage(getImage(descriptor));
        }
      } catch (ModelException e) {
View Full Code Here


    if (element instanceof BPListElement) {
      BPListElement cpentry = (BPListElement) element;
      ImageDescriptor imageDescriptor = getCPListElementBaseImage(cpentry);
      if (imageDescriptor != null) {
        if (PharUIUtil.isInvalidPharBuildEntry(cpentry)) {
          imageDescriptor = new ScriptElementImageDescriptor(
              imageDescriptor,
              ScriptElementImageDescriptor.ERROR,
              ScriptElementImageProvider.SMALL_SIZE);
        }
        return fRegistry.get(imageDescriptor);
View Full Code Here

    return super.getText(element);
  }

  public Image getImage(Object element) {
    if (element instanceof ConstantNode) {
      ImageDescriptor descriptor = new ScriptElementImageDescriptor(
          PHPPluginImages.DESC_OBJ_PHP_CONSTANTS_GROUP, 0,
          ScriptElementImageProvider.BIG_SIZE);
      return DLTKUIPlugin.getImageDescriptorRegistry().get(descriptor);
    } else {
      return super.getImage(element);
View Full Code Here

    int adornmentFlags = computeAdornmentFlags(element);
    if (adornmentFlags != 0) {
      ImageDescriptor baseImage = new ImageImageDescriptor(image);
      Rectangle bounds = image.getBounds();
      return getRegistry().get(
          new ScriptElementImageDescriptor(baseImage, adornmentFlags,
              new Point(bounds.width, bounds.height)));
    }
    return image;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.ui.ScriptElementImageDescriptor

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.