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) |
getInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic 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.XmlSerializerpublic void loadState(ProjectFacetManagerImpl.ProjectFacetManagerState state)
PersistentStateComponentState 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 ProjectFacetManagerpublic java.util.List<Module> getModulesWithFacet(FacetTypeId<?> typeId)
getModulesWithFacet in class ProjectFacetManagerpublic boolean hasFacets(FacetTypeId<?> typeId)
hasFacets in class ProjectFacetManagerpublic <F extends Facet<?>> java.util.List<F> getFacets(FacetTypeId<F> typeId, Module[] modules)
getFacets in class ProjectFacetManagerpublic <C extends FacetConfiguration> C createDefaultConfiguration(FacetType<?,C> facetType)
createDefaultConfiguration in class ProjectFacetManagerpublic <C extends FacetConfiguration> void setDefaultConfiguration(FacetType<?,C> facetType, C configuration)
setDefaultConfiguration in class ProjectFacetManager