Java 类com.intellij.util.xml.ElementPresentationTemplate 实例源码

项目:intellij-ce-playground    文件:DomElementsGroupNode.java   
@Override
  public Icon getNodeIcon() {
    Class clazz = ReflectionUtil.getRawType(myChildDescription.getType());
//        Class arrayClass = Array.newInstance(clazz, 0).getClass();
    ElementPresentationTemplate template = myChildDescription.getPresentationTemplate();
    if (template != null) {
      return template.createPresentation(null).getIcon();
    }
    return ElementPresentationManager.getIconForClass(clazz);
  }
项目:tools-idea    文件:DomElementsGroupNode.java   
public Icon getNodeIcon() {
    Class clazz = ReflectionUtil.getRawType(myChildDescription.getType());
//        Class arrayClass = Array.newInstance(clazz, 0).getClass();
    ElementPresentationTemplate template = myChildDescription.getPresentationTemplate();
    if (template != null) {
      return template.createPresentation(null).getIcon();
    }
    return ElementPresentationManager.getIconForClass(clazz);
  }
项目:consulo-xml    文件:DomElementsGroupNode.java   
public Icon getNodeIcon() {
    Class clazz = ReflectionUtil.getRawType(myChildDescription.getType());
//        Class arrayClass = Array.newInstance(clazz, 0).getClass();
    ElementPresentationTemplate template = myChildDescription.getPresentationTemplate();
    if (template != null) {
      return template.createPresentation(null).getIcon();
    }
    return ElementPresentationManager.getIconForClass(clazz);
  }
项目:intellij-ce-playground    文件:AbstractDomChildrenDescription.java   
@Nullable
ElementPresentationTemplate getPresentationTemplate();
项目:tools-idea    文件:AbstractDomChildrenDescription.java   
@Nullable
ElementPresentationTemplate getPresentationTemplate();
项目:consulo-xml    文件:DomElementXmlDescriptor.java   
@Override
public ElementPresentationTemplate getPresentationTemplate()
{
    return null;
}
项目:consulo-xml    文件:AbstractDomChildrenDescription.java   
@Nullable
ElementPresentationTemplate getPresentationTemplate();