public class ProjectFacetManagerImpl extends ProjectFacetManagerEx implements PersistentStateComponent<ProjectFacetManagerImpl.ProjectFacetManagerState>
Modifier and Type | Class and Description |
---|---|
static class |
ProjectFacetManagerImpl.DefaultFacetConfigurationState |
static class |
ProjectFacetManagerImpl.ProjectFacetManagerState |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENT_NAME |
Constructor and Description |
---|
ProjectFacetManagerImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
<C extends FacetConfiguration> |
createDefaultConfiguration(FacetType<?,C> facetType) |
<F extends Facet<?>> |
getFacets(FacetTypeId<F> typeId) |
<F extends Facet<?>> |
getFacets(FacetTypeId<F> typeId,
Module[] modules) |
java.util.List<Module> |
getModulesWithFacet(FacetTypeId<?> typeId) |
ProjectFacetManagerImpl.ProjectFacetManagerState |
getState() |
boolean |
hasFacets(FacetTypeId<?> typeId) |
void |
loadState(ProjectFacetManagerImpl.ProjectFacetManagerState state)
This method is called when new component state is loaded.
|
<C extends FacetConfiguration> |
setDefaultConfiguration(FacetType<?,C> facetType,
C configuration) |
getInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static final java.lang.String COMPONENT_NAME
public ProjectFacetManagerImpl(Project project)
public ProjectFacetManagerImpl.ProjectFacetManagerState getState()
getState
in interface PersistentStateComponent<ProjectFacetManagerImpl.ProjectFacetManagerState>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(ProjectFacetManagerImpl.ProjectFacetManagerState state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<ProjectFacetManagerImpl.ProjectFacetManagerState>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public <F extends Facet<?>> java.util.List<F> getFacets(FacetTypeId<F> typeId)
getFacets
in class ProjectFacetManager
public java.util.List<Module> getModulesWithFacet(FacetTypeId<?> typeId)
getModulesWithFacet
in class ProjectFacetManager
public boolean hasFacets(FacetTypeId<?> typeId)
hasFacets
in class ProjectFacetManager
public <F extends Facet<?>> java.util.List<F> getFacets(FacetTypeId<F> typeId, Module[] modules)
getFacets
in class ProjectFacetManager
public <C extends FacetConfiguration> C createDefaultConfiguration(FacetType<?,C> facetType)
createDefaultConfiguration
in class ProjectFacetManager
public <C extends FacetConfiguration> void setDefaultConfiguration(FacetType<?,C> facetType, C configuration)
setDefaultConfiguration
in class ProjectFacetManager