public class LibrariesModifiableModel extends java.lang.Object implements LibraryTable.ModifiableModel
Disposable.Parent
Constructor and Description |
---|
LibrariesModifiableModel(LibraryTable table,
Project project,
LibraryEditorListener libraryEditorListener) |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
Library |
createLibrary(java.lang.String name) |
Library |
createLibrary(java.lang.String name,
PersistentLibraryKind type) |
Library |
createLibrary(java.lang.String name,
PersistentLibraryKind type,
ProjectModelExternalSource externalSource) |
void |
deferredCommit() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
Library [] |
getLibraries() |
Library |
getLibraryByName(java.lang.String name) |
ExistingLibraryEditor |
getLibraryEditor(Library library) |
java.util.Iterator<Library> |
getLibraryIterator() |
Library.ModifiableModel |
getLibraryModifiableModel(Library library) |
boolean |
hasLibraryEditor(Library library) |
boolean |
isChanged() |
void |
removeLibrary(Library library) |
boolean |
wasLibraryRemoved(Library library) |
public LibrariesModifiableModel(LibraryTable table, Project project, LibraryEditorListener libraryEditorListener)
public Library createLibrary(java.lang.String name)
createLibrary
in interface LibraryTable.ModifiableModel
public Library createLibrary(java.lang.String name, PersistentLibraryKind type)
createLibrary
in interface LibraryTable.ModifiableModel
public Library createLibrary(java.lang.String name, PersistentLibraryKind type, ProjectModelExternalSource externalSource)
createLibrary
in interface LibraryTable.ModifiableModel
public void removeLibrary(Library library)
removeLibrary
in interface LibraryTable.ModifiableModel
public void commit()
commit
in interface LibraryTable.ModifiableModel
public java.util.Iterator<Library> getLibraryIterator()
getLibraryIterator
in interface LibraryTable.ModifiableModel
public Library getLibraryByName(java.lang.String name)
getLibraryByName
in interface LibraryTable.ModifiableModel
public Library [] getLibraries()
getLibraries
in interface LibraryTable.ModifiableModel
public boolean isChanged()
isChanged
in interface LibraryTable.ModifiableModel
public void deferredCommit()
public boolean wasLibraryRemoved(Library library)
public boolean hasLibraryEditor(Library library)
public ExistingLibraryEditor getLibraryEditor(Library library)
public Library.ModifiableModel getLibraryModifiableModel(Library library)
public void dispose()
Disposable
dispose
in interface Disposable