Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Direct Edit on creation
Direct Edit on creation [message #165516] Tue, 25 January 2005 16:57 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
>
Previous Topic:How to add two or more connections between two editpart?
Next Topic:Problem with IFileEditorInput
Goto Forum:
  


Current Time: Fri Apr 26 06:46:02 GMT 2024

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

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

Back to the top