public abstract class HistoryDialogModel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected VirtualFile |
myFile |
protected IdeaGateway |
myGateway |
protected Project |
myProject |
protected LocalHistoryFacade |
myVcs |
Constructor and Description |
---|
HistoryDialogModel(Project p,
IdeaGateway gw,
LocalHistoryFacade vcs,
VirtualFile f) |
Modifier and Type | Method and Description |
---|---|
protected Pair<Revision,java.util.List<RevisionItem>> |
calcRevisionsCache() |
boolean |
canPerformCreatePatch() |
void |
clearRevisions() |
protected Change |
createChange(Difference d) |
abstract Reverter |
createReverter() |
java.util.List<Change> |
getChanges() |
Revision |
getCurrentRevision() |
protected java.util.List<Difference> |
getDifferences() |
protected Entry |
getLeftEntry() |
Revision |
getLeftRevision() |
java.util.List<RevisionItem> |
getRevisions() |
protected Entry |
getRightEntry() |
Revision |
getRightRevision() |
java.lang.String |
getTitle() |
boolean |
isCreatePatchEnabled() |
boolean |
isCurrentRevisionSelected() |
boolean |
isRevertEnabled() |
void |
resetSelection() |
void |
selectRevisions(int first,
int second) |
void |
setFilter(java.lang.String filter) |
protected final Project myProject
protected LocalHistoryFacade myVcs
protected VirtualFile myFile
protected IdeaGateway myGateway
public HistoryDialogModel(Project p, IdeaGateway gw, LocalHistoryFacade vcs, VirtualFile f)
public java.lang.String getTitle()
public java.util.List<RevisionItem> getRevisions()
public Revision getCurrentRevision()
protected Pair<Revision,java.util.List<RevisionItem>> calcRevisionsCache()
public void setFilter(java.lang.String filter)
public void clearRevisions()
public Revision getLeftRevision()
public Revision getRightRevision()
protected Entry getLeftEntry()
protected Entry getRightEntry()
public void selectRevisions(int first, int second)
public void resetSelection()
public boolean isCurrentRevisionSelected()
public java.util.List<Change> getChanges()
protected java.util.List<Difference> getDifferences()
protected Change createChange(Difference d)
public abstract Reverter createReverter()
public boolean isRevertEnabled()
public boolean isCreatePatchEnabled()
public boolean canPerformCreatePatch()