Is it posible to create a new Model/Figure from inside a MultiTextCellEditor? [message #133100] |
Wed, 19 May 2004 18:20 |
Eclipse User |
|
|
|
Originally posted by: in8y125.public.uni-hamburg.de
I want to create a new Figure if a RETURN is entered in a Label like
figure. I check this inside a subclass of MultiTextCellEditor in the
method keyReleaseOccured. I recognize the pressed RETURN but I don't
know how to create and manage a new Figure and place it on the diagram.
What can I do?
Thanx for any help
H. Müller
|
|
|
Re: Is it posible to create a new Model/Figure from inside a MultiTextCellEditor? [message #133113 is a reply to message #133100] |
Wed, 19 May 2004 18:30 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
You can do lot's of things ;-)
1) When RETURN happens, you can actually create the new object in the model,
add it, have the editpart appear, and then direct-edit that new part. You
would have to look it up by model->editpart registry.
2) When Return happens, you can transition to a "create" directedit manager
which tells the parent editpart of the new item to show "xxx" feedback,
where that parent part responds by inserting some kind of spacer
representing the thing which has not yet been added to the model.
BTW, TextCellEditor supported multiline style.
"Hilger M
|
|
|
Powered by
FUDForum. Page generated in 0.03129 seconds