public class ExistingLibraryEditor extends LibraryEditorBase implements Disposable
Disposable.Parent
Constructor and Description |
---|
ExistingLibraryEditor(Library library,
LibraryEditorListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
addExcludedRoot(java.lang.String url) |
void |
addJarDirectory(java.lang.String url,
boolean recursive,
OrderRootType rootType) |
void |
addJarDirectory(VirtualFile file,
boolean recursive,
OrderRootType rootType) |
void |
addRoot(java.lang.String url,
OrderRootType rootType) |
void |
addRoot(VirtualFile file,
OrderRootType rootType) |
void |
commit() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
java.lang.String [] |
getExcludedRootUrls() |
ProjectModelExternalSource |
getExternalSource() |
VirtualFile [] |
getFiles(OrderRootType rootType) |
Library |
getLibrary() |
LibraryEx.ModifiableModelEx |
getModel() |
java.lang.String |
getName() |
java.util.Collection<OrderRootType> |
getOrderRootTypes() |
LibraryProperties |
getProperties() |
LibraryType<?> |
getType() |
java.lang.String [] |
getUrls(OrderRootType rootType) |
boolean |
hasChanges() |
boolean |
isJarDirectory(java.lang.String url,
OrderRootType rootType) |
boolean |
isValid(java.lang.String url,
OrderRootType orderRootType) |
void |
removeExcludedRoot(java.lang.String url) |
void |
removeRoot(java.lang.String url,
OrderRootType rootType) |
void |
setName(java.lang.String name) |
void |
setProperties(LibraryProperties properties) |
void |
setType(LibraryType<?> type) |
addRoots, removeAllRoots
public ExistingLibraryEditor(Library library, LibraryEditorListener listener)
public Library getLibrary()
public java.lang.String getName()
getName
in interface LibraryEditor
public LibraryType<?> getType()
getType
in interface LibraryEditor
public ProjectModelExternalSource getExternalSource()
getExternalSource
in interface LibraryEditor
getExternalSource
in class LibraryEditorBase
public void setType(LibraryType<?> type)
setType
in class LibraryEditorBase
public LibraryProperties getProperties()
getProperties
in interface LibraryEditor
public void setProperties(LibraryProperties properties)
setProperties
in class LibraryEditorBase
public void dispose()
Disposable
dispose
in interface Disposable
public java.lang.String [] getUrls(OrderRootType rootType)
getUrls
in interface LibraryEditor
public VirtualFile [] getFiles(OrderRootType rootType)
getFiles
in interface LibraryEditor
public java.lang.String [] getExcludedRootUrls()
getExcludedRootUrls
in interface LibraryEditor
public void setName(java.lang.String name)
setName
in interface LibraryEditor
public void addRoot(VirtualFile file, OrderRootType rootType)
addRoot
in interface LibraryEditor
public void addRoot(java.lang.String url, OrderRootType rootType)
addRoot
in interface LibraryEditor
public void addExcludedRoot(java.lang.String url)
addExcludedRoot
in interface LibraryEditor
public void addJarDirectory(VirtualFile file, boolean recursive, OrderRootType rootType)
addJarDirectory
in interface LibraryEditor
public void addJarDirectory(java.lang.String url, boolean recursive, OrderRootType rootType)
addJarDirectory
in interface LibraryEditor
public void removeRoot(java.lang.String url, OrderRootType rootType)
removeRoot
in interface LibraryEditor
public void removeExcludedRoot(java.lang.String url)
removeExcludedRoot
in interface LibraryEditor
public void commit()
public LibraryEx.ModifiableModelEx getModel()
public boolean hasChanges()
hasChanges
in interface LibraryEditor
public boolean isJarDirectory(java.lang.String url, OrderRootType rootType)
isJarDirectory
in interface LibraryEditor
public boolean isValid(java.lang.String url, OrderRootType orderRootType)
isValid
in interface LibraryEditor
public java.util.Collection<OrderRootType> getOrderRootTypes()
getOrderRootTypes
in class LibraryEditorBase