public class PlotCommitProvider extends Object implements IPlotCommitProvider
IPlotCommitProvider for
interface details.
Major parts of graph lane logic taken from org.eclipse.jgit.revplot.PlotCommitList.| Constructor and Description |
|---|
PlotCommitProvider()
Creates a new PlotCommitProvider from a list of HistoryInfo objects.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public PlotCommitProvider()
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 IPlotCommitProvidernewInfos - The update HistoryInfo list.IPlotCommitProvider.refresh(java.util.List)public IPlotCommit getCommitFor(HistoryInfo info, boolean onlyAChildRequest)
getCommitFor in interface IPlotCommitProviderinfo - 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)Copyright © 2017. All rights reserved.