public abstract class LibraryPresentationProvider<P extends LibraryProperties>
extends java.lang.Object
detect(List) method, if you need to specify
it explicitly use LibraryType extension point instead. <extensions defaultExtensionNs="com.intellij"> <library.presentationProvider implementation="qualified-class-name"/> </extensions>
LibraryType| Modifier and Type | Field and Description |
|---|---|
static ExtensionPointName<LibraryPresentationProvider> |
EP_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
LibraryPresentationProvider(LibraryKind kind) |
| Modifier and Type | Method and Description |
|---|---|
abstract P |
detect(java.util.List<VirtualFile> classesRoots)
Returns non-null value if a library with classes roots
classesRoots is of a kind described by this provider. |
java.lang.String |
getDescription(P properties) |
javax.swing.Icon |
getIcon()
Deprecated.
override
getIcon(LibraryProperties) instead |
javax.swing.Icon |
getIcon(P properties) |
LibraryKind |
getKind() |
public static final ExtensionPointName<LibraryPresentationProvider> EP_NAME
protected LibraryPresentationProvider(LibraryKind kind)
public LibraryKind getKind()
@Deprecated public javax.swing.Icon getIcon()
getIcon(LibraryProperties) insteadpublic javax.swing.Icon getIcon(P properties)
public java.lang.String getDescription(P properties)
public abstract P detect(java.util.List<VirtualFile> classesRoots)
classesRoots is of a kind described by this provider.