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();
   }
 }
Ejemplo n.º 2
0
 public LineBlocks getLineBlocks() {
   ArrayList<Change> changes = new ArrayList<>(myChanges);
   changes.addAll(myAppliedChanges);
   return LineBlocks.fromChanges(changes);
 }
Ejemplo n.º 3
0
 public LineBlocks getNonAppliedLineBlocks() {
   ArrayList<Change> changes = new ArrayList<>(myChanges);
   return LineBlocks.fromChanges(changes);
 }