public abstract class ElementPresentationManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static NullableFunction<java.lang.Object,java.lang.String> |
NAMER |
Constructor and Description |
---|
ElementPresentationManager() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
createVariant(java.lang.Object variant,
java.lang.String name,
PsiElement psiElement)
Deprecated.
|
<T> java.lang.Object [] |
createVariants(java.util.Collection<? extends T> elements,
Function<? super T,java.lang.String> namer) |
abstract <T> java.lang.Object [] |
createVariants(java.util.Collection<? extends T> elements,
Function<? super T,java.lang.String> namer,
int iconFlags) |
<T> java.lang.Object [] |
createVariants(java.util.Collection<T> elements) |
<T> java.lang.Object [] |
createVariants(java.util.Collection<T> elements,
int iconFlags) |
static <T> T |
findByName(java.util.Collection<T> collection,
java.lang.String name) |
static java.lang.reflect.Method |
findNameValueMethod(java.lang.Class<?> aClass) |
static java.lang.String |
getDocumentationForElement(java.lang.Object element) |
static java.lang.String |
getElementName(java.lang.Object element) |
static javax.swing.Icon |
getIcon(java.lang.Object o) |
static javax.swing.Icon |
getIconForClass(java.lang.Class clazz) |
static javax.swing.Icon |
getIconOld(java.lang.Object o) |
static ElementPresentationManager |
getInstance() |
static java.lang.String |
getTypeNameForObject(java.lang.Object o) |
static java.lang.Object |
invokeNameValueMethod(java.lang.Object element) |
static <T> NullableFunction<T,java.lang.String> |
namer() |
static <T> NullableFunction<T,java.lang.String> |
NAMER() |
static void |
registerDocumentationProvider(Function<java.lang.Object,java.lang.String> function)
Deprecated.
use
Documentation |
static void |
registerNameProvider(Function<java.lang.Object,java.lang.String> function)
Deprecated.
|
public static final NullableFunction<java.lang.Object,java.lang.String> NAMER
public static ElementPresentationManager getInstance()
public <T> java.lang.Object [] createVariants(java.util.Collection<T> elements)
public <T> java.lang.Object [] createVariants(java.util.Collection<T> elements, int iconFlags)
public <T> java.lang.Object [] createVariants(java.util.Collection<? extends T> elements, Function<? super T,java.lang.String> namer)
@Deprecated public abstract java.lang.Object createVariant(java.lang.Object variant, java.lang.String name, PsiElement psiElement)
LookupElementBuilder
public abstract <T> java.lang.Object [] createVariants(java.util.Collection<? extends T> elements, Function<? super T,java.lang.String> namer, int iconFlags)
@Deprecated public static void registerNameProvider(Function<java.lang.Object,java.lang.String> function)
Presentation.provider()
@Deprecated public static void registerDocumentationProvider(Function<java.lang.Object,java.lang.String> function)
Documentation
public static <T> NullableFunction<T,java.lang.String> NAMER()
public static <T> NullableFunction<T,java.lang.String> namer()
public static java.lang.String getElementName(java.lang.Object element)
public static java.lang.String getDocumentationForElement(java.lang.Object element)
public static java.lang.Object invokeNameValueMethod(java.lang.Object element)
public static java.lang.String getTypeNameForObject(java.lang.Object o)
public static javax.swing.Icon getIcon(java.lang.Object o)
public static javax.swing.Icon getIconOld(java.lang.Object o)
public static javax.swing.Icon getIconForClass(java.lang.Class clazz)
public static java.lang.reflect.Method findNameValueMethod(java.lang.Class<?> aClass)
public static <T> T findByName(java.util.Collection<T> collection, java.lang.String name)