public abstract class DownloadableLibraryType extends LibraryType<LibraryVersionProperties>
DEFAULT_EXTERNAL_ROOT_TYPES, EP_NAME
Modifier | Constructor and Description |
---|---|
|
DownloadableLibraryType(java.lang.String libraryCategoryName,
java.lang.String libraryTypeId,
java.lang.String groupId,
javax.swing.Icon icon,
java.net.URL... localUrls)
Deprecated.
use
DownloadableLibraryType(String, String, String, URL...) instead and override getLibraryTypeIcon() |
protected |
DownloadableLibraryType(java.lang.String libraryCategoryName,
java.lang.String libraryTypeId,
java.lang.String groupId,
java.net.URL... localUrls)
Creates instance of library type.
|
Modifier and Type | Method and Description |
---|---|
NewLibraryConfiguration |
createNewLibrary(javax.swing.JComponent parentComponent,
VirtualFile contextDirectory,
Project project)
Called when a new library of this type is created in Project Structure dialog
|
LibraryPropertiesEditor |
createPropertiesEditor(LibraryEditorComponent<LibraryVersionProperties> editorComponent) |
LibraryVersionProperties |
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 |
getCreateActionName() |
java.lang.String |
getDescription(LibraryVersionProperties properties) |
protected abstract java.lang.String [] |
getDetectionClassNames() |
javax.swing.Icon |
getIcon(LibraryVersionProperties properties) |
java.lang.String |
getLibraryCategoryName() |
DownloadableLibraryDescription |
getLibraryDescription() |
javax.swing.Icon |
getLibraryTypeIcon() |
createLibraryRootsComponentDescriptor, findByKind, getExternalRootTypes, getKind, isSuitableModule
getIcon
protected DownloadableLibraryType(java.lang.String libraryCategoryName, java.lang.String libraryTypeId, java.lang.String groupId, java.net.URL... localUrls)
getLibraryTypeIcon()
method and return non-null value
from it.libraryCategoryName
- presentable description of the library typelibraryTypeId
- unique id of the library type, used for serializationgroupId
- name of directory on https://frameworks.jetbrains.com site which contains information about available library versionslocalUrls
- URLs of xml files containing information about the library versions (see /contrib/osmorc/src/org/osmorc/facet/osgi.core.xml for example)@Deprecated public DownloadableLibraryType(java.lang.String libraryCategoryName, java.lang.String libraryTypeId, java.lang.String groupId, javax.swing.Icon icon, java.net.URL... localUrls)
DownloadableLibraryType(String, String, String, URL...)
instead and override getLibraryTypeIcon()
public java.lang.String getCreateActionName()
getCreateActionName
in class LibraryType<LibraryVersionProperties>
null
if the type should not be shown in the 'New Library' popuppublic NewLibraryConfiguration createNewLibrary(javax.swing.JComponent parentComponent, VirtualFile contextDirectory, Project project)
LibraryType
createNewLibrary
in class LibraryType<LibraryVersionProperties>
public DownloadableLibraryDescription getLibraryDescription()
public java.lang.String getLibraryCategoryName()
public java.lang.String getDescription(LibraryVersionProperties properties)
getDescription
in class LibraryPresentationProvider<LibraryVersionProperties>
public LibraryPropertiesEditor createPropertiesEditor(LibraryEditorComponent<LibraryVersionProperties> editorComponent)
createPropertiesEditor
in class LibraryType<LibraryVersionProperties>
public javax.swing.Icon getLibraryTypeIcon()
public javax.swing.Icon getIcon(LibraryVersionProperties properties)
getIcon
in class LibraryPresentationProvider<LibraryVersionProperties>
protected abstract java.lang.String [] getDetectionClassNames()
public LibraryVersionProperties detect(java.util.List<VirtualFile> classesRoots)
LibraryPresentationProvider
classesRoots
is of a kind described by this provider.detect
in class LibraryType<LibraryVersionProperties>