Search in sources :

Example 1 with LineBlocks

use of com.intellij.openapi.diff.impl.splitter.LineBlocks in project intellij-community by JetBrains.

the class DiffPanelImpl method rediff.

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();
    }
}
Also used : LineBlocks(com.intellij.openapi.diff.impl.splitter.LineBlocks) FilesTooBigForDiffException(com.intellij.util.diff.FilesTooBigForDiffException)

Aggregations

LineBlocks (com.intellij.openapi.diff.impl.splitter.LineBlocks)1 FilesTooBigForDiffException (com.intellij.util.diff.FilesTooBigForDiffException)1