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);
}
}
Aggregations