CheckBoxTreeViewer and Scroll
I'm having some difficulties setting the visible portion of the Tree. I'm trying to do something like:
I've searched around some and can't seem to find the right way to get this working. The goal is to be able to change which part of the tree is visible in the scroll panel. I have to admit, I'm new to SWT so it could be I'm missing something simple here. Hopefully you'll be able to help out!
tv = new CheckboxTreeViewer(composite);
... //set content and label providers
//now scroll to a spot in the tree!
TreeItem ta = tv.getTree().getItems();
TreeItem ti = ta;
Rectangle r = ti.getBounds();
Item i = tv.scrollDown(r.x,r.y);
Thanks in advance!