Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Is it posible to create a new Model/Figure from inside a MultiTextCellEditor?
Is it posible to create a new Model/Figure from inside a MultiTextCellEditor? [message #133100] Wed, 19 May 2004 18:20 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Last drawer disappeared when collapsed.
Next Topic:Simple GEF Example
Goto Forum:
  


Current Time: Wed Apr 24 17:06:15 GMT 2024

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

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

Back to the top