com.intellij.openapi.vcs
Class VcsConfiguration

java.lang.Object
  extended by com.intellij.openapi.vcs.VcsConfiguration
All Implemented Interfaces:
BaseComponent, ProjectComponent, JDOMExternalizable

public final class VcsConfiguration
extends java.lang.Object
implements JDOMExternalizable, ProjectComponent

author: lesya


Nested Class Summary
static class VcsConfiguration.StandardConfirmation
           
static class VcsConfiguration.StandardOption
           
 
Field Summary
 java.lang.String ACTIVE_VCS_NAME
           
 float CHECKIN_DIALOG_SPLITTER_PROPORTION
           
 boolean ERROR_OCCURED
           
 float FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION
           
 float FILE_HISTORY_DIALOG_SPLITTER_PROPORTION
           
 float FILE_HISTORY_SPLITTER_PROPORTION
           
 boolean FORCE_NON_EMPTY_COMMENT
           
 java.lang.String LAST_COMMIT_MESSAGE
           
 boolean OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT
           
 boolean OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT
           
 boolean PUT_FOCUS_INTO_COMMENT
           
 boolean REFORMAT_BEFORE_FILE_COMMIT
           
 boolean REFORMAT_BEFORE_PROJECT_COMMIT
           
 boolean SAVE_LAST_COMMIT_MESSAGE
           
 boolean SHOW_FILE_HISTORY_AS_TREE
           
 boolean UPDATE_GROUP_BY_PACKAGES
           
 
Constructor Summary
VcsConfiguration(Project project)
           
 
Method Summary
static VcsConfiguration createEmptyConfiguration(Project project)
           
 void disposeComponent()
          Component should dispose system resources or perform another cleanup in this method.
 java.lang.String getComponentName()
          Unique name of this component.
 java.lang.String getConfiguredProjectVcs()
           
static VcsConfiguration getInstance(Project project)
           
 java.lang.String getLastCommitMessage()
           
 java.util.ArrayList<java.lang.String> getRecentMessages()
           
 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 removeMessage(java.lang.String content)
           
 void saveCommitMessage(java.lang.String comment)
           
 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

PUT_FOCUS_INTO_COMMENT

public boolean PUT_FOCUS_INTO_COMMENT

FORCE_NON_EMPTY_COMMENT

public boolean FORCE_NON_EMPTY_COMMENT

LAST_COMMIT_MESSAGE

public java.lang.String LAST_COMMIT_MESSAGE

SAVE_LAST_COMMIT_MESSAGE

public boolean SAVE_LAST_COMMIT_MESSAGE

CHECKIN_DIALOG_SPLITTER_PROPORTION

public float CHECKIN_DIALOG_SPLITTER_PROPORTION

OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT

public boolean OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT

OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT

public boolean OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT

REFORMAT_BEFORE_PROJECT_COMMIT

public boolean REFORMAT_BEFORE_PROJECT_COMMIT

REFORMAT_BEFORE_FILE_COMMIT

public boolean REFORMAT_BEFORE_FILE_COMMIT

FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION

public float FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION

FILE_HISTORY_DIALOG_SPLITTER_PROPORTION

public float FILE_HISTORY_DIALOG_SPLITTER_PROPORTION

ERROR_OCCURED

public boolean ERROR_OCCURED

ACTIVE_VCS_NAME

public java.lang.String ACTIVE_VCS_NAME

UPDATE_GROUP_BY_PACKAGES

public boolean UPDATE_GROUP_BY_PACKAGES

SHOW_FILE_HISTORY_AS_TREE

public boolean SHOW_FILE_HISTORY_AS_TREE

FILE_HISTORY_SPLITTER_PROPORTION

public float FILE_HISTORY_SPLITTER_PROPORTION
Constructor Detail

VcsConfiguration

public VcsConfiguration(Project project)
Method Detail

createEmptyConfiguration

public static VcsConfiguration createEmptyConfiguration(Project project)

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

getInstance

public static VcsConfiguration getInstance(Project project)

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

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

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

getConfiguredProjectVcs

public java.lang.String getConfiguredProjectVcs()

saveCommitMessage

public void saveCommitMessage(java.lang.String comment)

getLastCommitMessage

public java.lang.String getLastCommitMessage()

getRecentMessages

public java.util.ArrayList<java.lang.String> getRecentMessages()

removeMessage

public void removeMessage(java.lang.String content)