private void updateUI(boolean incomplete) { if (trace) GitTraceLocation.getTrace().traceEntry(GitTraceLocation.HISTORYVIEW.getLocation()); try { if (!incomplete && loadedCommits.size() == lastUpdateCnt) return; final SWTCommit[] asArray = new SWTCommit[loadedCommits.size()]; loadedCommits.toArray(asArray); page.showCommitList(this, loadedCommits, asArray, commitToShow, incomplete, highlightFlag); commitToShow = null; lastUpdateCnt = loadedCommits.size(); } finally { if (trace) GitTraceLocation.getTrace().traceExit(GitTraceLocation.HISTORYVIEW.getLocation()); } }
GenerateHistoryJob( final GitHistoryPage ghp, Control control, RevWalk walk, ResourceManager resources) { super( NLS.bind( UIText.HistoryPage_refreshJob, Activator.getDefault() .getRepositoryUtil() .getRepositoryName(ghp.getInputInternal().getRepository()))); page = ghp; this.walk = walk; highlightFlag = walk.newFlag("highlight"); // $NON-NLS-1$ loadedCommits = new SWTCommitList(control, resources); loadedCommits.source(walk); trace = GitTraceLocation.HISTORYVIEW.isActive(); }
@Override public boolean canShowHistoryFor(final Object object) { return GitHistoryPage.canShowHistoryFor(object); }