Search in sources :

Example 1 with DiffDividerPaint

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

the class DiffDivider method listenEditors.

public void listenEditors(@NotNull EditingSides sides) {
    stopListenEditors();
    myPaint = new DiffDividerPaint(sides, myLeftSide, MERGE_DIVIDER_POLYGONS_OFFSET);
    myEditors[0] = sides.getEditor(FragmentSide.SIDE1);
    myEditors[1] = sides.getEditor(FragmentSide.SIDE2);
    if (myEditors[0] == null || myEditors[1] == null) {
        LOG.error(myEditors[1] + " " + myEditors[1]);
    }
    for (Editor editor : myEditors) {
        editor.getScrollingModel().addVisibleAreaListener(myVisibleAreaListener);
    }
}
Also used : DiffDividerPaint(com.intellij.openapi.diff.impl.splitter.DiffDividerPaint) Editor(com.intellij.openapi.editor.Editor)

Aggregations

DiffDividerPaint (com.intellij.openapi.diff.impl.splitter.DiffDividerPaint)1 Editor (com.intellij.openapi.editor.Editor)1