public class IdeDocumentHistoryImpl extends IdeDocumentHistory implements Disposable, PersistentStateComponent<IdeDocumentHistoryImpl.RecentlyChangedFilesState>
Modifier and Type | Class and Description |
---|---|
static class |
IdeDocumentHistoryImpl.PlaceInfo |
static class |
IdeDocumentHistoryImpl.RecentlyChangedFilesState |
static interface |
IdeDocumentHistoryImpl.RecentPlacesListener
IdeDocumentHistoryImpl.RecentPlacesListener listens recently viewed or changed place adding and removing events. |
Disposable.Parent
Constructor and Description |
---|
IdeDocumentHistoryImpl(Project project) |
getInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public IdeDocumentHistoryImpl(Project project)
protected FileEditorManagerEx getFileEditorManager()
public static void appendTimestamp(Project project, SimpleColoredComponent component, VirtualFile file)
public IdeDocumentHistoryImpl.RecentlyChangedFilesState getState()
getState
in interface PersistentStateComponent<IdeDocumentHistoryImpl.RecentlyChangedFilesState>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(IdeDocumentHistoryImpl.RecentlyChangedFilesState state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<IdeDocumentHistoryImpl.RecentlyChangedFilesState>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public final void onSelectionChanged()
public final void includeCurrentCommandAsNavigation()
includeCurrentCommandAsNavigation
in class IdeDocumentHistory
public void setCurrentCommandHasMoves()
setCurrentCommandHasMoves
in class IdeDocumentHistory
public final void includeCurrentPlaceAsChangePlace()
includeCurrentPlaceAsChangePlace
in class IdeDocumentHistory
public VirtualFile[] getChangedFiles()
getChangedFiles
in class IdeDocumentHistory
public PersistentHashMap<java.lang.String,java.lang.Long> getRecentFilesTimestamps()
getRecentFilesTimestamps
in class IdeDocumentHistory
public final void clearHistory()
clearHistory
in class IdeDocumentHistory
public final void back()
back
in class IdeDocumentHistory
public final void forward()
forward
in class IdeDocumentHistory
public final boolean isBackAvailable()
isBackAvailable
in class IdeDocumentHistory
public final boolean isForwardAvailable()
isForwardAvailable
in class IdeDocumentHistory
public final void navigatePreviousChange()
navigatePreviousChange
in class IdeDocumentHistory
public java.util.List<IdeDocumentHistoryImpl.PlaceInfo> getBackPlaces()
getBackPlaces
in class IdeDocumentHistory
public java.util.List<IdeDocumentHistoryImpl.PlaceInfo> getChangePlaces()
getChangePlaces
in class IdeDocumentHistory
public void removeBackPlace(IdeDocumentHistoryImpl.PlaceInfo placeInfo)
removeBackPlace
in class IdeDocumentHistory
public void removeChangePlace(IdeDocumentHistoryImpl.PlaceInfo placeInfo)
removeChangePlace
in class IdeDocumentHistory
public final boolean isNavigatePreviousChangeAvailable()
isNavigatePreviousChangeAvailable
in class IdeDocumentHistory
public void navigateNextChange()
navigateNextChange
in class IdeDocumentHistory
public boolean isNavigateNextChangeAvailable()
isNavigateNextChangeAvailable
in class IdeDocumentHistory
public void gotoPlaceInfo(IdeDocumentHistoryImpl.PlaceInfo info)
gotoPlaceInfo
in class IdeDocumentHistory
public void gotoPlaceInfo(IdeDocumentHistoryImpl.PlaceInfo info, boolean wasActive)
gotoPlaceInfo
in class IdeDocumentHistory
protected FileEditorWithProvider getSelectedEditor()
protected IdeDocumentHistoryImpl.PlaceInfo createPlaceInfo(FileEditor fileEditor, FileEditorProvider fileProvider)
public final void dispose()
Disposable
dispose
in interface Disposable
protected void executeCommand(java.lang.Runnable runnable, java.lang.String name, java.lang.Object groupId)
public static boolean isSame(IdeDocumentHistoryImpl.PlaceInfo first, IdeDocumentHistoryImpl.PlaceInfo second)