public void run() {
try {
if (cancelled) {
return;
}
final DiffView view = diff.createDiff(s1, s2);
if (currentTask == ShowDiffTask.this) {
currentDiff = view;
setBottomComponent(currentDiff.getComponent());
if (currentDiff.getDifferenceCount() > 0) {
currentDifferenceIndex = showLastDifference ? currentDiff.getDifferenceCount() - 1 : 0;