public final class FacetManagerImpl extends FacetManagerBase implements ModuleComponent, PersistentStateComponent<FacetManagerState>
FACETS_TOPIC| Constructor and Description |
|---|
FacetManagerImpl(Module module) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(ModifiableFacetModel model) |
static Facet<?> |
createFacetFromStateRaw(Module module,
FacetType<?,?> type,
FacetState state,
Facet<?> underlyingFacet) |
ModifiableFacetModel |
createModifiableModel()
Creates the interface for modifying set of facets in the module.
|
protected FacetModel |
getModel() |
protected Module |
getModule() |
FacetManagerState |
getState() |
void |
loadState(FacetManagerState state)
This method is called when new component state is loaded.
|
void |
moduleAdded()
Invoked when the module corresponding to this component instance has been completely
loaded and added to the project.
|
void |
noStateLoaded()
This method is called when the component is initialized, but no state is persisted.
|
static FacetState |
saveFacetConfiguration(Facet<?> facet) |
void |
setExternalSource(Facet<?> facet,
ProjectModelExternalSource externalSource) |
addFacet, checkConsistency, createFacet, createFacet, createFacet, createInvalidFacet, facetConfigurationChanged, findFacet, getAllFacets, getFacetByType, getFacetByType, getFacetName, getFacetsByType, getFacetsByType, getSortedFacets, setFacetNamegetInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprojectClosed, projectOpeneddisposeComponent, initComponentgetComponentNameinitializeComponentpublic FacetManagerImpl(Module module)
public ModifiableFacetModel createModifiableModel()
FacetManagerModifiableFacetModel.commit() when modification is finishedcreateModifiableModel in class FacetManagerprotected FacetModel getModel()
getModel in class FacetManagerBaseprotected Module getModule()
getModule in class FacetManagerBasepublic static Facet<?> createFacetFromStateRaw(Module module, FacetType<?,?> type, FacetState state, Facet<?> underlyingFacet)
public void noStateLoaded()
PersistentStateComponentnoStateLoaded in interface PersistentStateComponent<FacetManagerState>public void loadState(FacetManagerState state)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<FacetManagerState>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public FacetManagerState getState()
getState in interface PersistentStateComponent<FacetManagerState>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic static FacetState saveFacetConfiguration(Facet<?> facet)
public void commit(ModifiableFacetModel model)
public void setExternalSource(Facet<?> facet, ProjectModelExternalSource externalSource)
public void moduleAdded()
ModuleComponentmoduleAdded in interface ModuleComponent