@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); }
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); }
@Nullable ElementPresentationTemplate getPresentationTemplate();
@Override public ElementPresentationTemplate getPresentationTemplate() { return null; }