ComboBox in Table/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

ComboBox in Table/Tree

Postby Greenhorn » Wed Aug 27, 2008 12:59 am

Hi,

I want to place a Combo Box in a Table/Tree Column. Is it possible and how can I do this.

Greetz


Please excuses my bad english :P
Greenhorn
 
Posts: 3
Joined: Wed Aug 27, 2008 12:11 am

Re: ComboBox in Table/Tree

Postby Eric Clayberg » Wed Aug 27, 2008 3:57 am

Greenhorn wrote:I want to place a Combo Box in a Table/Tree Column. Is it possible and how can I do this.

That is a dynamic runtime activity rather than a static design time activity.

The SWT Snippets page has TableEditor examples showing how to do this.
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

Re: ComboBox in Table/Tree

Postby Greenhorn » Wed Aug 27, 2008 4:36 am

Can you please explain?! I'm a neewbie to SWT. The Snippet looks like a InlineEditingSupport. But I don't understand why i have to use this for setting a widget (comboBox) into a Table/tree cell?


Thx
Greenhorn
 
Posts: 3
Joined: Wed Aug 27, 2008 12:11 am

Re: ComboBox in Table/Tree

Postby Eric Clayberg » Wed Aug 27, 2008 4:52 am

Greenhorn wrote:Can you please explain?! I'm a neewbie to SWT. The Snippet looks like a InlineEditingSupport. But I don't understand why i have to use this for setting a widget (comboBox) into a Table/tree cell?

What you are describing (putting a widget into a table cell) is inline editing, and that snippet shows how to do it

BTW, if you have general questions about SWT and how it works, the eclipse.platform.swt newsgroup is the best place to ask them.
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

Re: ComboBox in Table/Tree

Postby Greenhorn » Wed Aug 27, 2008 4:58 am

Thx,

I ask my Question in this Forum because I play with your SWT Designer!
Greenhorn
 
Posts: 3
Joined: Wed Aug 27, 2008 12:11 am

Re: ComboBox in Table/Tree

Postby Eric Clayberg » Wed Aug 27, 2008 5:58 am

Greenhorn wrote:I ask my Question in this Forum because I play with your SWT Designer!

If you have a question specifically about SWT Designer, this is the appropriate place to ask.

This is not, however, the place to ask general SWT questions.
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