public class CodeInsightWorkspaceSettings extends java.lang.Object implements PersistentStateComponent<CodeInsightWorkspaceSettings>
| Modifier and Type | Field and Description |
|---|---|
boolean |
optimizeImportsOnTheFly |
| Constructor and Description |
|---|
CodeInsightWorkspaceSettings() |
| Modifier and Type | Method and Description |
|---|---|
static CodeInsightWorkspaceSettings |
getInstance(Project project) |
CodeInsightWorkspaceSettings |
getState() |
void |
loadState(CodeInsightWorkspaceSettings state)
This method is called when new component state is loaded.
|
void |
setOptimizeImportsOnTheFly(boolean optimizeImportsOnTheFly,
Disposable parentDisposable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic void setOptimizeImportsOnTheFly(boolean optimizeImportsOnTheFly,
Disposable parentDisposable)
public static CodeInsightWorkspaceSettings getInstance(Project project)
public void loadState(CodeInsightWorkspaceSettings state)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<CodeInsightWorkspaceSettings>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public CodeInsightWorkspaceSettings getState()
getState in interface PersistentStateComponent<CodeInsightWorkspaceSettings>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer