-2

https://i.stack.imgur.com/DK6q0.png

This layout is GridLayout.

Text, Label and Button is element of SWT. So, there use set GridData.

But TreeViewer is a element of JFace. It is can't use GridData.

I Want to TreeViewer's size is fill horizontal.

1
  • English grammar, please!
    – oberlies
    Jul 14, 2014 at 16:45

1 Answer 1

1

There is an underlying SWT Tree component under JFace TreeViewer. You Can do it like this:

treeViewer.getTree().setLayoutData(data);
treeViewer.getTree().setLayout(layout);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.