Package org.eclipse.jface.resource

Examples of org.eclipse.jface.resource.ImageRegistry


  public ImageFactory() {
    super();
  }

  public Image getImage(String iconName) {
    ImageRegistry imageRegistry = XMLUIPlugin.getDefault().getImageRegistry();

    if (imageRegistry.get(iconName) != null) {
      return imageRegistry.get(iconName);
    }
    else {
      imageRegistry.put(iconName, ImageDescriptor.createFromFile(getClass(), iconName));
      return imageRegistry.get(iconName);
    }
  }
View Full Code Here


  /**
   * @generated
   */
  private Image getImage(String key, IElementType elementType) {
    ImageRegistry imageRegistry = OntoUML.diagram.part.OntoUMLDiagramEditorPlugin
        .getInstance().getImageRegistry();
    Image image = imageRegistry.get(key);
    if (image == null
        && elementType != null
        && OntoUML.diagram.providers.OntoUMLElementTypes
            .isKnownElementType(elementType)) {
      image = OntoUML.diagram.providers.OntoUMLElementTypes
          .getImage(elementType);
      imageRegistry.put(key, image);
    }

    if (image == null) {
      image = imageRegistry.get("Navigator?ImageNotFound"); //$NON-NLS-1$
      imageRegistry.put(key, image);
    }
    return image;
  }
View Full Code Here

  /**
   * @generated
   */
  private static ImageRegistry getImageRegistry() {
    if (imageRegistry == null) {
      imageRegistry = new ImageRegistry();
    }
    return imageRegistry;
  }
View Full Code Here

    return TemplateManager.getDjangoContextTypeRegistry().getContextType(id);
  }

  @Override
  protected Image getImage(Template template) {
    ImageRegistry registry = DjangoActivator.getDefault().getImageRegistry();
    Image image = registry.get(IDjangoImages.TAG_IMAGE);
    return image;
  }
View Full Code Here

    return TemplateManager.getDjangoContextTypeRegistry().getContextType(id);
  }

  @Override
  protected Image getImage(Template template) {
    ImageRegistry registry = DjangoActivator.getDefault().getImageRegistry();
    return registry.get(IDjangoImages.FILTER_IMAGE);
  }
View Full Code Here

    return TemplateManager.getDjangoContextTypeRegistry().getContextType(id);
  }

  @Override
  protected Image getImage(Template template) {
    ImageRegistry registry = DjangoPlugin.getDefault().getImageRegistry();
    Image image = registry.get(IDjangoImages.TAG_IMAGE);
    return image;
  }
View Full Code Here

    return TemplateManager.getDjangoContextTypeRegistry().getContextType(id);
  }

  @Override
  protected Image getImage(Template template) {
    ImageRegistry registry = DjangoPlugin.getDefault().getImageRegistry();
    return registry.get(IDjangoImages.FILTER_IMAGE);
  }
View Full Code Here

      descr = "Django template filter";
    else if (wordType.equals("FORLOOP"))
      descr = "Django loop variable";
    String dispStr = String.format("%s   - %s", keyWord, descr);
   
    ImageRegistry registry = DjangoPlugin.getDefault().getImageRegistry();
    Image image = registry.get(IDjangoImages.TAG_IMAGE);
    if (partition.equals(IDjangoPartitions.DJANGO_VARIABLE))
      image = registry.get(IDjangoImages.FILTER_IMAGE);
   
    return
      new CompletionProposal(keyWord,   //replacementString
          wordPart.getOffset(),    //replacementOffset the offset of the text to be replaced
          wordPart.getString().length(),   //replacementLength the length of the text to be replaced
View Full Code Here

   
    else if (conType.equals(IDjangoPartitions.HTML_CSS))
      aImageName = IDjangoImages.OUTL_CSS_IMAGE;
             
    if (aImageName != null) {
      ImageRegistry registry = DjangoPlugin.getDefault().getImageRegistry();
      return registry.get(aImageName);
    }
    return null;
  }
View Full Code Here

 
  private final ImageRegistry images;
 
  /** Constructs a new label provider. */
  public PageDescriptorLabelProvider() {
    images = new ImageRegistry();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.resource.ImageRegistry

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.