public interface ModifiableFacetModel extends FacetModel
Modifier and Type | Interface and Description |
---|---|
static interface |
ModifiableFacetModel.Listener |
Modifier and Type | Method and Description |
---|---|
void |
addFacet(Facet<?> facet) |
void |
addFacet(Facet<?> facet,
ProjectModelExternalSource externalSource) |
void |
addListener(ModifiableFacetModel.Listener listener,
Disposable parentDisposable) |
void |
commit() |
java.lang.String |
getNewName(Facet<?> facet) |
boolean |
isModified() |
boolean |
isNewFacet(Facet<?> facet) |
void |
removeFacet(Facet<?> facet) |
void |
rename(Facet<?> facet,
java.lang.String newName) |
void |
replaceFacet(Facet<?> original,
Facet<?> replacement)
Replaces
original facet by replacement . |
findFacet, getAllFacets, getFacetByType, getFacetByType, getFacetName, getFacetsByType, getFacetsByType, getSortedFacets
void addFacet(Facet<?> facet)
void addFacet(Facet<?> facet, ProjectModelExternalSource externalSource)
void removeFacet(Facet<?> facet)
void replaceFacet(Facet<?> original, Facet<?> replacement)
original
facet by replacement
. The only difference with removeFacet(original); addFacet(replacement);
is that this method preserves order of facets in internal structures to avoid modifications of *.iml files.void rename(Facet<?> facet, java.lang.String newName)
java.lang.String getNewName(Facet<?> facet)
void commit()
boolean isModified()
boolean isNewFacet(Facet<?> facet)
void addListener(ModifiableFacetModel.Listener listener, Disposable parentDisposable)