public class RepositoryLibraryType extends LibraryType<RepositoryLibraryProperties>
Modifier and Type | Field and Description |
---|---|
static PersistentLibraryKind<RepositoryLibraryProperties> |
REPOSITORY_LIBRARY_KIND |
DEFAULT_EXTERNAL_ROOT_TYPES, EP_NAME
Modifier | Constructor and Description |
---|---|
protected |
RepositoryLibraryType() |
Modifier and Type | Method and Description |
---|---|
LibraryRootsComponentDescriptor |
createLibraryRootsComponentDescriptor()
Override this method to customize the library roots editor
|
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<RepositoryLibraryProperties> component) |
java.lang.String |
getCreateActionName() |
java.lang.String |
getDescription(RepositoryLibraryProperties properties) |
javax.swing.Icon |
getIcon(RepositoryLibraryProperties properties) |
static RepositoryLibraryType |
getInstance() |
detect, findByKind, getExternalRootTypes, getKind, isSuitableModule
getIcon
public static final PersistentLibraryKind<RepositoryLibraryProperties> REPOSITORY_LIBRARY_KIND
public static RepositoryLibraryType getInstance()
public java.lang.String getCreateActionName()
getCreateActionName
in class LibraryType<RepositoryLibraryProperties>
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<RepositoryLibraryProperties>
public LibraryPropertiesEditor createPropertiesEditor(LibraryEditorComponent<RepositoryLibraryProperties> component)
createPropertiesEditor
in class LibraryType<RepositoryLibraryProperties>
public javax.swing.Icon getIcon(RepositoryLibraryProperties properties)
getIcon
in class LibraryPresentationProvider<RepositoryLibraryProperties>
public java.lang.String getDescription(RepositoryLibraryProperties properties)
getDescription
in class LibraryPresentationProvider<RepositoryLibraryProperties>
public LibraryRootsComponentDescriptor createLibraryRootsComponentDescriptor()
LibraryType
createLibraryRootsComponentDescriptor
in class LibraryType<RepositoryLibraryProperties>
LibraryRootsComponentDescriptor
instance