public final class EditorHistoryManager extends java.lang.Object implements PersistentStateComponent<Element>, Disposable
Disposable.Parent| Modifier and Type | Method and Description | 
|---|---|
void | 
dispose()
Usually not invoked directly, see class javadoc. 
 | 
java.util.List<VirtualFile> | 
getFileList()  | 
VirtualFile [] | 
getFiles()  | 
java.util.LinkedHashSet<VirtualFile> | 
getFileSet()
Deprecated. 
 
use  
getFileList() | 
static EditorHistoryManager | 
getInstance(Project project)  | 
FileEditorProvider | 
getSelectedProvider(VirtualFile file)  | 
Element | 
getState()  | 
FileEditorState | 
getState(VirtualFile file,
        FileEditorProvider provider)  | 
boolean | 
hasBeenOpen(VirtualFile f)  | 
void | 
loadState(Element state)
This method is called when new component state is loaded. 
 | 
void | 
removeAllFiles()
For internal or test-only usage. 
 | 
void | 
removeFile(VirtualFile file)
Removes specified  
file from history. | 
void | 
updateHistoryEntry(VirtualFile file,
                  boolean changeEntryOrderOnly)  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic static EditorHistoryManager getInstance(Project project)
public void updateHistoryEntry(VirtualFile file, boolean changeEntryOrderOnly)
public VirtualFile [] getFiles()
public void removeAllFiles()
public java.util.List<VirtualFile> getFileList()
@Deprecated public java.util.LinkedHashSet<VirtualFile> getFileSet()
getFileList()public boolean hasBeenOpen(VirtualFile f)
public void removeFile(VirtualFile file)
file from history. The method does
 nothing if file is not in the history.java.lang.IllegalArgumentException - if file
 is nullpublic FileEditorState getState(VirtualFile file, FileEditorProvider provider)
public FileEditorProvider getSelectedProvider(VirtualFile file)
public void loadState(Element state)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<Element>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public Element getState()
getState in interface PersistentStateComponent<Element>null value indicates
 that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic void dispose()
Disposabledispose in interface Disposable