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, setFacetName
getInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
projectClosed, projectOpened
disposeComponent, initComponent
getComponentName
initializeComponent
public FacetManagerImpl(Module module)
public ModifiableFacetModel createModifiableModel()
FacetManager
ModifiableFacetModel.commit()
when modification is finishedcreateModifiableModel
in class FacetManager
protected FacetModel getModel()
getModel
in class FacetManagerBase
protected Module getModule()
getModule
in class FacetManagerBase
public static Facet<?> createFacetFromStateRaw(Module module, FacetType<?,?> type, FacetState state, Facet<?> underlyingFacet)
public void noStateLoaded()
PersistentStateComponent
noStateLoaded
in interface PersistentStateComponent<FacetManagerState>
public void loadState(FacetManagerState state)
PersistentStateComponent
State 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.XmlSerializer
public static FacetState saveFacetConfiguration(Facet<?> facet)
public void commit(ModifiableFacetModel model)
public void setExternalSource(Facet<?> facet, ProjectModelExternalSource externalSource)
public void moduleAdded()
ModuleComponent
moduleAdded
in interface ModuleComponent