public class ArtifactsWorkspaceSettings extends java.lang.Object implements PersistentStateComponent<ArtifactsWorkspaceSettings.ArtifactsWorkspaceSettingsState>
Modifier and Type | Class and Description |
---|---|
static class |
ArtifactsWorkspaceSettings.ArtifactsWorkspaceSettingsState |
Constructor and Description |
---|
ArtifactsWorkspaceSettings(Project project) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Artifact> |
getArtifactsToBuild() |
static ArtifactsWorkspaceSettings |
getInstance(Project project) |
ArtifactsWorkspaceSettings.ArtifactsWorkspaceSettingsState |
getState() |
void |
loadState(ArtifactsWorkspaceSettings.ArtifactsWorkspaceSettingsState state)
This method is called when new component state is loaded.
|
void |
setArtifactsToBuild(java.util.Collection<? extends Artifact> artifacts) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public ArtifactsWorkspaceSettings(Project project)
public static ArtifactsWorkspaceSettings getInstance(Project project)
public java.util.List<Artifact> getArtifactsToBuild()
public void setArtifactsToBuild(java.util.Collection<? extends Artifact> artifacts)
public ArtifactsWorkspaceSettings.ArtifactsWorkspaceSettingsState getState()
getState
in interface PersistentStateComponent<ArtifactsWorkspaceSettings.ArtifactsWorkspaceSettingsState>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(ArtifactsWorkspaceSettings.ArtifactsWorkspaceSettingsState state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<ArtifactsWorkspaceSettings.ArtifactsWorkspaceSettingsState>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)