public class StandardDiffFromHistoryHandler extends java.lang.Object implements DiffFromHistoryHandler
| Constructor and Description |
|---|
StandardDiffFromHistoryHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
showDiffForOne(AnActionEvent e,
Project project,
FilePath filePath,
VcsFileRevision previousRevision,
VcsFileRevision revision)
Show diff when a single revision is selected in the file history panel.
|
void |
showDiffForTwo(Project project,
FilePath filePath,
VcsFileRevision revision1,
VcsFileRevision revision2)
Show diff for 2 revisions selected from the file history panel,
or "Show Diff with Local" (then the second revision is a
CurrentRevision. |
public void showDiffForOne(AnActionEvent e, Project project, FilePath filePath, VcsFileRevision previousRevision, VcsFileRevision revision)
DiffFromHistoryHandlershowDiffForOne in interface DiffFromHistoryHandlere - AnActionEvent which happened, when user invoked "Show Diff".filePath - the file which history is shown.previousRevision - the previous revision in the list displayed file history panel, may be VcsFileRevision.NULL.revision - the revision selected in the file history panel.public void showDiffForTwo(Project project, FilePath filePath, VcsFileRevision revision1, VcsFileRevision revision2)
DiffFromHistoryHandlerCurrentRevision.
The order of selected revisions is not defined.showDiffForTwo in interface DiffFromHistoryHandlerfilePath - the file which history is shown.revision1 - one of the selected revisions.revision2 - another selected revision.