Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » More Dynamic Table Viewer Cell Modifiers?
More Dynamic Table Viewer Cell Modifiers? [message #457078] Thu, 16 June 2005 07:40
Eclipse UserFriend
Originally posted by: mikydna.yahoo.com

Hello.

Currently, I'm creating a properties editor/view for a selected
XML-node's attributes (in a different outline view).

Is there any (easy) way to set the Cell modifier type (TextCellEditor,
DialogCellEditor, etc) based on the selected element's contents?

For example:

Case A) <foo name="fooName" class="org.foo.foobar"/>

Name Value
---- -----
name fooName
class org.foo.foobar

Case B) <foo test="yay" test2="boo" />

Name Value
---- -----
test yay
test2 boo


If (A) is selected i could use a TextCellEditor for the "name" and a
DialogEditor for the "class".

If (B) is selected i could use a TextCellEditor for both attributes.


In other words, instead of basing the CellEditor's subclass on the
Table's columnName.. can I base the cellEditor type on the table's contents?


I hope that made sense.
Any help appreciated.

Thanks in advance!
Andy-
Previous Topic:Is it possible to select and highlight a single cell (col>0) in a Table?
Next Topic:Thread,SWT,ASYN,SYN problem
Goto Forum:
  


Current Time: Sat Apr 27 02:27:41 GMT 2024

Powered by FUDForum. Page generated in 0.02980 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top