コード例 #1
0
 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();
   }
 }
コード例 #2
0
 public LineBlocks getLineBlocks() {
   ArrayList<Change> changes = new ArrayList<>(myChanges);
   changes.addAll(myAppliedChanges);
   return LineBlocks.fromChanges(changes);
 }
コード例 #3
0
 public LineBlocks getNonAppliedLineBlocks() {
   ArrayList<Change> changes = new ArrayList<>(myChanges);
   return LineBlocks.fromChanges(changes);
 }