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 LibraryEditorComponent
public boolean isNewLibrary()
isNewLibrary
in interface LibraryEditorComponent
public void updatePropertiesLabel()
public javax.swing.JComponent getComponent()
public Project getProject()
getProject
in interface LibraryEditorComponent
public void setContextModule(Module module)
public VirtualFile getExistingRootDirectory()
getExistingRootDirectory
in interface LibraryEditorComponent
public VirtualFile getBaseDirectory()
getBaseDirectory
in interface LibraryEditorComponent
public LibraryEditor getLibraryEditor()
getLibraryEditor
in interface LibraryEditorComponent
public boolean hasChanges()
public void onLibraryRenamed()
public void renameLibrary(java.lang.String newName)
renameLibrary
in interface LibraryEditorComponent
public void dispose()
Disposable
dispose
in interface Disposable
public void resetProperties()
public void applyProperties()
public void updateRootsTree()
updateRootsTree
in interface LibraryEditorComponent
public void addListener(java.lang.Runnable listener)
public void removeListener(java.lang.Runnable listener)