public class ExternalProjectsDataStorage extends java.lang.Object implements PersistentStateComponent<com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsDataStorage.State>
Modifier and Type | Field and Description |
---|---|
static int |
STORAGE_VERSION |
Constructor and Description |
---|
ExternalProjectsDataStorage(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
doSave() |
static ExternalProjectsDataStorage |
getInstance(Project project) |
static java.nio.file.Path |
getProjectConfigurationDir(Project project) |
com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsDataStorage.State |
getState() |
static void |
invalidateCaches() |
void |
load() |
void |
loadState(com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsDataStorage.State state)
This method is called when new component state is loaded.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static final int STORAGE_VERSION
public ExternalProjectsDataStorage(Project project)
public static ExternalProjectsDataStorage getInstance(Project project)
public void load()
public void doSave()
public static java.nio.file.Path getProjectConfigurationDir(Project project)
public com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsDataStorage.State getState()
getState
in interface PersistentStateComponent<com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsDataStorage.State>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsDataStorage.State state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<com.intellij.openapi.externalSystem.service.project.manage.ExternalProjectsDataStorage.State>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public static void invalidateCaches()