Let label get focus when its parent gets created? [message #145426] |
Thu, 29 July 2004 09:24 |
Eclipse User |
|
|
|
Originally posted by: mastr.arcor.de
Hey!
When I create a new figure via my palette I want that figure's label to
get focus automatically (direct edit).
I couldn't find a referencing example for this...does one exist?
Where do I have to inform my editor about this?
MyCreateCommand or MYLayoutPolicy or ...
Thanks in advance
Martin
|
|
|
Re: Let label get focus when its parent gets created? [message #145554 is a reply to message #145426] |
Thu, 29 July 2004 17:24 |
Eclipse User |
|
|
|
Originally posted by: gaslade.yahoo.com
For what it's worth, here's how I did it.....
In my CreateCommand.execute I add the new model part to the parent part.
Then the new model part fires an event called ForcedDirectEditEvent.
The edit part that was created when the new part was added to the parent
is a model event listener and catches the ForcedDirectEditEvent that
it's model part fired.
The edit part responds in the same way as a 'normal' direct edit request.
Guy
Martin S. wrote:
> Hey!
>
> When I create a new figure via my palette I want that figure's label to
> get focus automatically (direct edit).
> I couldn't find a referencing example for this...does one exist?
>
> Where do I have to inform my editor about this?
> MyCreateCommand or MYLayoutPolicy or ...
>
> Thanks in advance
> Martin
>
|
|
|
Powered by
FUDForum. Page generated in 0.02765 seconds