public void afterPanelsAdded() {
myLeftScroll.setMinimum(0);
myLeftScroll.setMaximum(myMaxColumnsLeft);
myLeftScroll.addAdjustmentListener(new AdjustmentListener() {
@Override
public void adjustmentValueChanged(AdjustmentEvent e) {
myInScrolling = true;
final int scrollPosCorrected = myLeftScroll.getValue() + 1;
if (myByLeft) {
scrollMain(myLeftScroll.getValue(), myLeftModels);
scrollOther(scrollPosCorrected, myMaxColumnsLeft, myMaxColumnsRight, myRightModels);
} else {
scrollMain(myLeftScroll.getValue(), myRightModels);
scrollOther(scrollPosCorrected, myMaxColumnsRight, myMaxColumnsLeft, myLeftModels);
}
myInScrolling = false;
}
});
}
ChangesFragmentedDiffPanel.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:tools-idea
作者:
评论列表
文章目录