void rediff() { try { if (myTopMessageDiffPanel != null) { myPanel.removeTopComponent(myTopMessageDiffPanel); } LineBlocks blocks = myData.updateEditors(); setLineBlocks(blocks != null ? blocks : LineBlocks.EMPTY); if (blocks != null && blocks.getCount() == 0) { if (myData.isContentsEqual()) { setFileContentsAreIdentical(); } } } catch (FilesTooBigForDiffException e) { setTooBigFileErrorContents(); } }
public LineBlocks getLineBlocks() { ArrayList<Change> changes = new ArrayList<>(myChanges); changes.addAll(myAppliedChanges); return LineBlocks.fromChanges(changes); }
public LineBlocks getNonAppliedLineBlocks() { ArrayList<Change> changes = new ArrayList<>(myChanges); return LineBlocks.fromChanges(changes); }