com.intellij.psi.codeStyle
Class CodeStyleSettingsManager

java.lang.Object
  extended by com.intellij.psi.codeStyle.CodeStyleSettingsManager
All Implemented Interfaces:
ApplicationComponent, BaseComponent, ProjectComponent, JDOMExternalizable

public class CodeStyleSettingsManager
extends java.lang.Object
implements ApplicationComponent, ProjectComponent, JDOMExternalizable


Field Summary
 CodeStyleSettings PER_PROJECT_SETTINGS
           
 boolean USE_PER_PROJECT_SETTINGS
           
 
Constructor Summary
CodeStyleSettingsManager()
           
CodeStyleSettingsManager(Project project)
           
 
Method Summary
 void disposeComponent()
          Component should dispose system resources or perform another cleanup in this method.
 void dropTemporarySettings()
           
 java.lang.String getComponentName()
          Unique name of this component.
 CodeStyleSettings getCurrentSettings()
           
static CodeStyleSettingsManager getInstance()
           
static CodeStyleSettingsManager getInstance(Project project)
           
static CodeStyleSettings getSettings(Project project)
           
 void initComponent()
          Component should do initialization and communication with another components in this method.
 void projectClosed()
          Invoked when the project corresponding to this component instance is closed.
 void projectOpened()
          Invoked when the project corresponding to this component instance is opened.
 void readExternal(org.jdom.Element element)
           
 void setTemporarySettings(CodeStyleSettings settings)
           
 void writeExternal(org.jdom.Element element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PER_PROJECT_SETTINGS

public CodeStyleSettings PER_PROJECT_SETTINGS

USE_PER_PROJECT_SETTINGS

public boolean USE_PER_PROJECT_SETTINGS
Constructor Detail

CodeStyleSettingsManager

public CodeStyleSettingsManager(Project project)

CodeStyleSettingsManager

public CodeStyleSettingsManager()
Method Detail

getInstance

public static CodeStyleSettingsManager getInstance(Project project)

getInstance

public static CodeStyleSettingsManager getInstance()

getSettings

public static CodeStyleSettings getSettings(Project project)

getCurrentSettings

public CodeStyleSettings getCurrentSettings()

readExternal

public void readExternal(org.jdom.Element element)
                  throws InvalidDataException
Specified by:
readExternal in interface JDOMExternalizable
Throws:
InvalidDataException

writeExternal

public void writeExternal(org.jdom.Element element)
                   throws WriteExternalException
Specified by:
writeExternal in interface JDOMExternalizable
Throws:
WriteExternalException

disposeComponent

public void disposeComponent()
Description copied from interface: BaseComponent
Component should dispose system resources or perform another cleanup in this method.

Specified by:
disposeComponent in interface BaseComponent

initComponent

public void initComponent()
Description copied from interface: BaseComponent
Component should do initialization and communication with another components in this method.

Specified by:
initComponent in interface BaseComponent

projectOpened

public void projectOpened()
Description copied from interface: ProjectComponent
Invoked when the project corresponding to this component instance is opened.

Note that components may be created for even unopened projects and this method can be never invoked for a particular component instance (for example for default project).

Specified by:
projectOpened in interface ProjectComponent

projectClosed

public void projectClosed()
Description copied from interface: ProjectComponent
Invoked when the project corresponding to this component instance is closed.

Note that components may be created for even unopened projects and this method can be never invoked for a particular component instance (for example for default project).

Specified by:
projectClosed in interface ProjectComponent

getComponentName

public java.lang.String getComponentName()
Description copied from interface: BaseComponent
Unique name of this component. If there is another component with the same name or name is null internal assertion will occur.

Specified by:
getComponentName in interface BaseComponent
Returns:
the name of this component

setTemporarySettings

public void setTemporarySettings(CodeStyleSettings settings)

dropTemporarySettings

public void dropTemporarySettings()