There are two components of TreeViewer in my dialog. Vertical scrollbars must be synchronized. I tried the setSelection and setTopItem , but both of them do not affect the other tree.
xViewerLeft = createXViewer(leftComposite, this); xViewerRight = createXViewer(rightComposite, this); xViewerLeft.getTree().getVerticalBar().addListener(SWT.Selection, new Listener() { @Override public void handleEvent(Event arg0) {
Any ideas?
source share