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) |
getInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic 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.XmlSerializerpublic void loadState(IdeDocumentHistoryImpl.RecentlyChangedFilesState state)
PersistentStateComponentState 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 IdeDocumentHistorypublic void setCurrentCommandHasMoves()
setCurrentCommandHasMoves in class IdeDocumentHistorypublic final void includeCurrentPlaceAsChangePlace()
includeCurrentPlaceAsChangePlace in class IdeDocumentHistorypublic VirtualFile[] getChangedFiles()
getChangedFiles in class IdeDocumentHistorypublic PersistentHashMap<java.lang.String,java.lang.Long> getRecentFilesTimestamps()
getRecentFilesTimestamps in class IdeDocumentHistorypublic final void clearHistory()
clearHistory in class IdeDocumentHistorypublic final void back()
back in class IdeDocumentHistorypublic final void forward()
forward in class IdeDocumentHistorypublic final boolean isBackAvailable()
isBackAvailable in class IdeDocumentHistorypublic final boolean isForwardAvailable()
isForwardAvailable in class IdeDocumentHistorypublic final void navigatePreviousChange()
navigatePreviousChange in class IdeDocumentHistorypublic java.util.List<IdeDocumentHistoryImpl.PlaceInfo> getBackPlaces()
getBackPlaces in class IdeDocumentHistorypublic java.util.List<IdeDocumentHistoryImpl.PlaceInfo> getChangePlaces()
getChangePlaces in class IdeDocumentHistorypublic void removeBackPlace(IdeDocumentHistoryImpl.PlaceInfo placeInfo)
removeBackPlace in class IdeDocumentHistorypublic void removeChangePlace(IdeDocumentHistoryImpl.PlaceInfo placeInfo)
removeChangePlace in class IdeDocumentHistorypublic final boolean isNavigatePreviousChangeAvailable()
isNavigatePreviousChangeAvailable in class IdeDocumentHistorypublic void navigateNextChange()
navigateNextChange in class IdeDocumentHistorypublic boolean isNavigateNextChangeAvailable()
isNavigateNextChangeAvailable in class IdeDocumentHistorypublic void gotoPlaceInfo(IdeDocumentHistoryImpl.PlaceInfo info)
gotoPlaceInfo in class IdeDocumentHistorypublic void gotoPlaceInfo(IdeDocumentHistoryImpl.PlaceInfo info, boolean wasActive)
gotoPlaceInfo in class IdeDocumentHistoryprotected FileEditorWithProvider getSelectedEditor()
protected IdeDocumentHistoryImpl.PlaceInfo createPlaceInfo(FileEditor fileEditor, FileEditorProvider fileProvider)
public final void dispose()
Disposabledispose in interface Disposableprotected void executeCommand(java.lang.Runnable runnable,
java.lang.String name,
java.lang.Object groupId)
public static boolean isSame(IdeDocumentHistoryImpl.PlaceInfo first, IdeDocumentHistoryImpl.PlaceInfo second)