public class ProjectCodeStyleSettingsManager extends CodeStyleSettingsManager
PER_PROJECT_SETTINGS, PREFERRED_PROJECT_CODE_STYLE, USE_PER_PROJECT_SETTINGS
Constructor and Description |
---|
ProjectCodeStyleSettingsManager(Project project) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<CodeStyleSettings> |
enumSettings() |
CodeStyleSettings |
getMainProjectCodeStyle() |
Element |
getState() |
void |
initializeComponent()
If class also is a component, then this method will be called after loading state (even if not state) but only once throughout the life cycle
|
protected boolean |
isIgnoredOnSave(java.lang.String fieldName) |
void |
loadState(Element state)
This method is called when new component state is loaded.
|
void |
setMainProjectCodeStyle(CodeStyleSettings settings)
Sets main project settings by the name "Project".
|
addListener, dropTemporarySettings, fireCodeStyleSettingsChanged, getCurrentSettings, getInstance, getInstance, getSettings, getStateModificationCount, getTemporarySettings, isLoaded, notifyCodeStyleSettingsChanged, registerCustomSettings, registerExtensionPointListeners, registerFileTypeIndentOptions, registerLanguageSettings, removeListener, setTemporarySettings, unregisterCustomSettings, unregisterFileTypeIndentOptions, unregisterLanguageSettings, updateSettingsTracker
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
noStateLoaded
public ProjectCodeStyleSettingsManager(Project project)
public void initializeComponent()
PersistentStateComponent
public void setMainProjectCodeStyle(CodeStyleSettings settings)
CodeStyleSettingsManager
setMainProjectCodeStyle
in class CodeStyleSettingsManager
settings
- The code style settings which can be assigned to project.public CodeStyleSettings getMainProjectCodeStyle()
getMainProjectCodeStyle
in class CodeStyleSettingsManager
public void loadState(Element state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
loadState
in class CodeStyleSettingsManager
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public Element getState()
getState
in interface PersistentStateComponent<Element>
getState
in class CodeStyleSettingsManager
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
protected boolean isIgnoredOnSave(java.lang.String fieldName)
isIgnoredOnSave
in class CodeStyleSettingsManager
protected java.util.Collection<CodeStyleSettings> enumSettings()
enumSettings
in class CodeStyleSettingsManager