More Dynamic Table Viewer Cell Modifiers? [message #457078] |
Thu, 16 June 2005 07:40 |
Eclipse User |
|
|
|
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-
|
|
|
Powered by
FUDForum. Page generated in 0.02980 seconds