Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsScrolling in the JFace Tree Viewer
https://www.eclipse.org/forums/index.php/mv/msg/369230/900944/#msg_900944
I am using a tree viewer in the master details framework at the master part.
My parent composite uses Grid Layout.
I initialize the tree like this
FilteredTree filteredTree = new FilteredTree(treeComp, SWT.BORDER | SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL, new PatternFilter(), true);
GridDataFactory.fillDefaults().grab(true, true).applyTo(filteredTree);
I want to get the vertical scroll whenever the user opens the editor much like the Manifest editor.
Any help will be hugely appreciated.
cheers,
Saurav]]>saurav sarkar2012-08-09T07:49:42-00:00Re: Scrolling in the JFace Tree Viewer
https://www.eclipse.org/forums/index.php/mv/msg/369230/900950/#msg_900950
Jan Krakora2012-08-09T08:03:46-00:00Re: Scrolling in the JFace Tree Viewer
https://www.eclipse.org/forums/index.php/mv/msg/369230/900971/#msg_900971
I took the points of the parent composite and set that point as a hint for the tree viewer's data.