TreeViewer not expanding, and Tree widget [message #116956] |
Mon, 22 December 2008 20:20 |
Tom H Messages: 139 Registered: July 2009 |
Senior Member |
|
|
Hi,
I have been testing with RAP and I took the TreeViewer example from the
demo site and have been making changes to it. I am having a problem where
that I want to add a Text field above my TreeViewer, so I have done the
following;
Composite contents = new Composite(parent, SWT.HORIZONTAL);
contents.setLayout(new GridLayout(1,false));
Text inputText = new Text(contents, SWT.BORDER);
inputText.setLayoutData(
new GridData(GridData.FILL_HORIZONTAL));
viewer = new TreeViewer(contents);
and the Input text expands to fill the screen, but not the TreeViewer.
However there is no method for "setLayoutData" on the Treeviewer, so I
can't expand it that way, and at the moment its crunched up on the left.
(2nd question - whats the difference between the SWT Tree widget and the
jface TreeViewer, can either be used, or one rather than the other?)
Many Thanks,
Tom
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03295 seconds