/** * Handles a changing focus revision. * * @param previousRevision the old focus revision (<code>null</code> for no focus) * @param nextRevision the new focus revision (<code>null</code> for no focus) */ private void onFocusRevisionChanged(Revision previousRevision, Revision nextRevision) { if (DEBUG) System.out.println("revision: " + previousRevision + " > " + nextRevision); //$NON-NLS-1$ //$NON-NLS-2$ fFocusRevision= nextRevision; uninstallWheelHandler(); installWheelHandler(); updateOverviewAnnotations(); redraw(); // pick up new highlights }
/** * Handles a changing focus revision. * * @param previousRevision the old focus revision (<code>null</code> for no focus) * @param nextRevision the new focus revision (<code>null</code> for no focus) */ private void onFocusRevisionChanged(Revision previousRevision, Revision nextRevision) { if (DEBUG) System.out.println("revision: " + previousRevision + " > " + nextRevision); //$NON-NLS-1$ //$NON-NLS-2$ fFocusRevision= nextRevision; uninstallWheelHandler(); installWheelHandler(); updateOverviewAnnotations(); redraw(); // pick up new highlights }
/** * Handles the selection of a revision and informs listeners. * * @param revision the selected revision, <code>null</code> for none */ void handleRevisionSelected(Revision revision) { fSelectedRevision= revision; fRevisionSelectionProvider.revisionSelected(revision); if (isConnected()) updateOverviewAnnotations(); postRedraw(); }
/** * Handles the selection of a revision and informs listeners. * * @param revision the selected revision, <code>null</code> for none */ void handleRevisionSelected(Revision revision) { fSelectedRevision= revision; fRevisionSelectionProvider.revisionSelected(revision); if (isConnected()) updateOverviewAnnotations(); postRedraw(); }
/** * Gets all change ranges of the revisions in the revision model and adapts them to the current * quick diff information. The list is cached. * * @return the list of all change regions, with diff information applied */ private synchronized List<RevisionRange> getRangeCache() { if (fRevisionRanges == null) { if (fRevisionInfo == null) { fRevisionRanges= Collections.emptyList(); } else { Hunk[] hunks= HunkComputer.computeHunks(fLineDiffer, fViewer.getDocument().getNumberOfLines()); fRevisionInfo.applyDiff(hunks); fRevisionRanges= fRevisionInfo.getRanges(); updateOverviewAnnotations(); informListeners(); } } return fRevisionRanges; }
/** * Gets all change ranges of the revisions in the revision model and adapts them to the current * quick diff information. The list is cached. * * @return the list of all change regions, with diff information applied */ private synchronized List<RevisionRange> getRangeCache() { if (fRevisionRanges == null) { if (fRevisionInfo == null) { fRevisionRanges= Collections.emptyList(); } else { Hunk[] hunks= HunkComputer.computeHunks(fLineDiffer, fViewer.getDocument().getNumberOfLines()); fRevisionInfo.applyDiff(hunks); fRevisionRanges= fRevisionInfo.getRanges(); updateOverviewAnnotations(); informListeners(); } } return fRevisionRanges; }