TreeColumn in CheckboxTreeViewer tree

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

TreeColumn in CheckboxTreeViewer tree

Postby howieb » Wed May 30, 2007 3:29 am

I have two dialogs. The first dialog I had no problem creating this control in the container child of the dialog. In the second dialog I had a TabFolder, and tried to create this in the second TabItem's composite. When I place the column onto the tree, the header appears at a height of 0, and I can't resize it. The only way I can select it is in the tree. Any ideas?
howieb
 
Posts: 7
Joined: Tue May 29, 2007 6:07 pm

Re: TreeColumn in CheckboxTreeViewer tree

Postby Eric Clayberg » Wed May 30, 2007 3:48 am

You need to set the headerVisible property to true.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby howieb » Wed May 30, 2007 4:48 am

Thanks Eric.

Did I actually write that line of code for the correctly functioning dialog, or had it been generated for me by SWT Designer? I honestly don't remember doing it (and it was just this weekend). I also did not see that property in the designer itself, so it was either generated code or I must have written.
howieb
 
Posts: 7
Joined: Tue May 29, 2007 6:07 pm

Postby Eric Clayberg » Wed May 30, 2007 8:38 am

howieb wrote:Did I actually write that line of code for the correctly functioning dialog, or had it been generated for me by SWT Designer? I honestly don't remember doing it (and it was just this weekend). I also did not see that property in the designer itself, so it was either generated code or I must have written.

Your either added it yourself or you set the headerVisible property to true in the Designer property pane.

The headerVisible attribute is a property of the CheckBoxTableViewer's underlying (table) control.

See below...

Image
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby howieb » Wed May 30, 2007 12:44 pm

I don't know how I missed that... I was using Tree, not Table, but I see it there now as well.

Thanks.
howieb
 
Posts: 7
Joined: Tue May 29, 2007 6:07 pm

Postby Eric Clayberg » Wed May 30, 2007 3:42 pm

All of the JFace Viewers have a control attribute which exposes the underlying widget (e.g., a table, a tree, etc.).
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests