public class LibraryRootsComponent extends java.lang.Object implements Disposable, LibraryEditorComponent
| Modifier and Type | Class and Description |
|---|---|
class |
LibraryRootsComponent.AttachItemActionBase |
Disposable.Parent| Constructor and Description |
|---|
LibraryRootsComponent(Project project,
Computable<? extends LibraryEditor> libraryEditorComputable) |
LibraryRootsComponent(Project project,
LibraryEditor libraryEditor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(java.lang.Runnable listener) |
void |
applyProperties() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
VirtualFile |
getBaseDirectory() |
javax.swing.JComponent |
getComponent() |
VirtualFile |
getExistingRootDirectory() |
LibraryEditor |
getLibraryEditor() |
Project |
getProject() |
LibraryProperties |
getProperties() |
boolean |
hasChanges() |
boolean |
isNewLibrary() |
void |
onLibraryRenamed() |
void |
removeListener(java.lang.Runnable listener) |
void |
renameLibrary(java.lang.String newName) |
void |
resetProperties() |
void |
setContextModule(Module module) |
void |
updatePropertiesLabel() |
void |
updateRootsTree() |
public LibraryRootsComponent(Project project, LibraryEditor libraryEditor)
public LibraryRootsComponent(Project project, Computable<? extends LibraryEditor> libraryEditorComputable)
public LibraryProperties getProperties()
getProperties in interface LibraryEditorComponentpublic boolean isNewLibrary()
isNewLibrary in interface LibraryEditorComponentpublic void updatePropertiesLabel()
public javax.swing.JComponent getComponent()
public Project getProject()
getProject in interface LibraryEditorComponentpublic void setContextModule(Module module)
public VirtualFile getExistingRootDirectory()
getExistingRootDirectory in interface LibraryEditorComponentpublic VirtualFile getBaseDirectory()
getBaseDirectory in interface LibraryEditorComponentpublic LibraryEditor getLibraryEditor()
getLibraryEditor in interface LibraryEditorComponentpublic boolean hasChanges()
public void onLibraryRenamed()
public void renameLibrary(java.lang.String newName)
renameLibrary in interface LibraryEditorComponentpublic void dispose()
Disposabledispose in interface Disposablepublic void resetProperties()
public void applyProperties()
public void updateRootsTree()
updateRootsTree in interface LibraryEditorComponentpublic void addListener(java.lang.Runnable listener)
public void removeListener(java.lang.Runnable listener)