com.intellij.openapi.vcs.fileView
Class FileViewConfiguration

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

public class FileViewConfiguration
extends java.lang.Object
implements JDOMExternalizable, ProjectComponent

author: lesya


Field Summary
 boolean CUSTOMIZE_VIEW
           
 java.lang.String SELECTED_COLUMNS
           
 java.lang.String SELECTED_STATUSES
           
 boolean SHOW_FILE_HISTORY_AS_TREE
           
 boolean SHOW_FILTERS
           
 
Constructor Summary
FileViewConfiguration()
           
 
Method Summary
 void disposeComponent()
          Component should dispose system resources or perform another cleanup in this method.
 java.lang.String getComponentName()
          Unique name of this component.
static FileViewConfiguration getInstance(Project project)
           
 java.util.Collection getSelectedColumns(NamedComponent[] allColumns)
           
 java.util.Collection getSelectedStatuses(NamedComponent[] allItems)
           
 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 saveSelectedColumns(java.util.Collection shownColumns)
           
 void saveSelectedStatuses(java.util.Collection statuses)
           
 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

SELECTED_STATUSES

public java.lang.String SELECTED_STATUSES

SELECTED_COLUMNS

public java.lang.String SELECTED_COLUMNS

SHOW_FILTERS

public boolean SHOW_FILTERS

CUSTOMIZE_VIEW

public boolean CUSTOMIZE_VIEW

SHOW_FILE_HISTORY_AS_TREE

public boolean SHOW_FILE_HISTORY_AS_TREE
Constructor Detail

FileViewConfiguration

public FileViewConfiguration()
Method Detail

getInstance

public static FileViewConfiguration getInstance(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

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

getSelectedStatuses

public java.util.Collection getSelectedStatuses(NamedComponent[] allItems)

getSelectedColumns

public java.util.Collection getSelectedColumns(NamedComponent[] allColumns)

saveSelectedStatuses

public void saveSelectedStatuses(java.util.Collection statuses)

saveSelectedColumns

public void saveSelectedColumns(java.util.Collection shownColumns)