Search in sources :

Example 1 with TypePresentationService

use of com.intellij.ide.TypePresentationService in project intellij-community by JetBrains.

the class ElementPresentationManager method getIconsForClass.

@Nullable
private static Icon[] getIconsForClass(final Class clazz, @Nullable Object o) {
    TypePresentationService service = TypePresentationService.getService();
    final Icon icon = o == null ? service.getTypeIcon(clazz) : service.getIcon(o);
    if (icon != null) {
        return new Icon[] { icon };
    }
    return null;
}
Also used : TypePresentationService(com.intellij.ide.TypePresentationService) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

TypePresentationService (com.intellij.ide.TypePresentationService)1 Nullable (org.jetbrains.annotations.Nullable)1