use of com.intellij.diff.tools.util.SyncScrollSupport.TwosideSyncScrollSupport in project intellij-community by JetBrains.
the class TwosideTextDiffViewer method installEditorListeners.
//
// Listeners
//
@CalledInAwt
protected void installEditorListeners() {
new TextDiffViewerUtil.EditorActionsPopup(createEditorPopupActions()).install(getEditors());
new TextDiffViewerUtil.EditorFontSizeSynchronizer(getEditors()).install(this);
getEditor(Side.LEFT).getScrollingModel().addVisibleAreaListener(myVisibleAreaListener);
getEditor(Side.RIGHT).getScrollingModel().addVisibleAreaListener(myVisibleAreaListener);
SyncScrollSupport.SyncScrollable scrollable = getSyncScrollable();
if (scrollable != null) {
mySyncScrollSupport = new TwosideSyncScrollSupport(getEditors(), scrollable);
myEditorSettingsAction.setSyncScrollSupport(mySyncScrollSupport);
}
}
Aggregations