Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Let label get focus when its parent gets created?
Let label get focus when its parent gets created? [message #145426] Thu, 29 July 2004 09:24 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:a toolEntry that call a method
Next Topic:Changing figures for edit parts
Goto Forum:
  


Current Time: Sat Apr 27 00:34:52 GMT 2024

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

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

Back to the top