public interface VcsHistoryProvider
Modifier and Type | Method and Description |
---|---|
boolean |
canShowHistoryFor(VirtualFile file)
Provide any additional restrictions for showing history for the given file.
|
VcsHistorySession |
createSessionFor(FilePath filePath)
Returns the history session for the specified file path.
|
AnAction[] |
getAdditionalActions(java.lang.Runnable refresher) |
java.lang.String |
getHelpId() |
DiffFromHistoryHandler |
getHistoryDiffHandler()
The returned
DiffFromHistoryHandler will be called, when user calls "Show Diff" from the file history panel. |
VcsDependentHistoryComponents |
getUICustomization(VcsHistorySession session,
javax.swing.JComponent forShortcutRegistration) |
boolean |
isDateOmittable()
Returns whether the history provider submits the custom-formatted date
and the standard "Date" column must be omitted to get rid of confusion.
|
void |
reportAppendableHistory(FilePath path,
VcsAppendableHistorySessionPartner partner) |
boolean |
supportsHistoryForDirectories() |
VcsDependentHistoryComponents getUICustomization(VcsHistorySession session, javax.swing.JComponent forShortcutRegistration)
AnAction[] getAdditionalActions(java.lang.Runnable refresher)
boolean isDateOmittable()
java.lang.String getHelpId()
VcsHistorySession createSessionFor(FilePath filePath) throws VcsException
filePath
- the file path for which the session is requested.VcsException
- if an error occurred when loading the revisionsvoid reportAppendableHistory(FilePath path, VcsAppendableHistorySessionPartner partner) throws VcsException
VcsException
boolean supportsHistoryForDirectories()
DiffFromHistoryHandler getHistoryDiffHandler()
DiffFromHistoryHandler
will be called, when user calls "Show Diff" from the file history panel.
If null
is returned, the standard handler will be used, which is suitable for most cases.boolean canShowHistoryFor(VirtualFile file)
file
- File which history is requested or may be requested.