|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.ui.views.historybrowserview.graph.PlotCommitProvider
public class PlotCommitProvider
This class manages the creation of PlotCommits from HistoryInfos. See IPlotCommitProvider
for
interface details.
Major parts of graph lane logic taken from org.eclipse.jgit.revplot.PlotCommitList.
Constructor Summary | |
---|---|
PlotCommitProvider()
Creates a new PlotCommitProvider from a list of HistoryInfo objects. |
Method Summary | |
---|---|
IPlotCommit |
getCommitFor(HistoryInfo info,
boolean onlyAChildRequest)
Gets a plot commit for the provided history info. |
void |
refresh(List<HistoryInfo> newInfos)
Sets a new list of HistoryInfo objects for the same input. |
void |
reset(List<HistoryInfo> infos)
Reset the state of the plot commit provider and refresh it with the given history info. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlotCommitProvider()
Method Detail |
---|
public void reset(List<HistoryInfo> infos)
infos
- the history info which is used to refresh the providerpublic void refresh(List<HistoryInfo> newInfos)
HistoryInfo
objects for the same input. This keeps e.g. branch colors etc.
refresh
in interface IPlotCommitProvider
newInfos
- The update HistoryInfo
list.IPlotCommitProvider.refresh(java.util.List)
public IPlotCommit getCommitFor(HistoryInfo info, boolean onlyAChildRequest)
getCommitFor
in interface IPlotCommitProvider
info
- The history info for which the plot commit shall be retrieved.onlyAChildRequest
- Determines the 'real' status of the returned commit. See
IPlotCommit.setIsRealCommit(boolean)
IPlotCommitProvider.getCommitFor(org.eclipse.emf.emfstore.internal.server.model.versioning.HistoryInfo,
boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |