Direct Edit on creation [message #165516] |
Tue, 25 January 2005 16:57 |
Eclipse User |
|
|
|
Originally posted by: spam.nospam.com
Hi all,
does anyone know of a way I can trigger a direct edit request whenever
the creation tool results in the creation of an EditPart that provides a
DIRECT_EDIT_ROLE?
For example, in the Logic example; whenever a Sticky note is added, I
want to trigger direct edit immediately.
TIA
Pat Turner
|
|
|
Re: Direct Edit on creation [message #165532 is a reply to message #165516] |
Tue, 25 January 2005 20:01 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Override handleCreate in the creation tool, and get the editpart using the
viewer's editpart registry. The object created can be obtained from the
request assuming that's where the executed command got it. Send the
necessary request to that part.
"Pat" <spam@nospam.com> wrote in message news:ct5tq3$9e$1@www.eclipse.org...
> Hi all,
>
> does anyone know of a way I can trigger a direct edit request whenever the
> creation tool results in the creation of an EditPart that provides a
> DIRECT_EDIT_ROLE?
>
> For example, in the Logic example; whenever a Sticky note is added, I want
> to trigger direct edit immediately.
>
> TIA
> Pat Turner
|
|
|
Re: Direct Edit on creation [message #165632 is a reply to message #165532] |
Wed, 26 January 2005 08:22 |
Eclipse User |
|
|
|
Originally posted by: spam.nospam.com
Thanks Randy.
I guess you meant to say override performCreation(int button) though - I
can't find handleCreate().
Pat
Randy Hudson wrote:
> Override handleCreate in the creation tool, and get the editpart using the
> viewer's editpart registry. The object created can be obtained from the
> request assuming that's where the executed command got it. Send the
> necessary request to that part.
>
> "Pat" <spam@nospam.com> wrote in message news:ct5tq3$9e$1@www.eclipse.org...
>
>>Hi all,
>>
>>does anyone know of a way I can trigger a direct edit request whenever the
>>creation tool results in the creation of an EditPart that provides a
>>DIRECT_EDIT_ROLE?
>>
>>For example, in the Logic example; whenever a Sticky note is added, I want
>>to trigger direct edit immediately.
>>
>>TIA
>>Pat Turner
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03332 seconds