Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Disable Automatic Direct (Inline) Editing Upon Creating Link
Disable Automatic Direct (Inline) Editing Upon Creating Link [message #208353] Sat, 11 October 2008 10:19 Go to next message
Philip Mayer is currently offline Philip MayerFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,

I have a link with a name, which has a label and is supposed to be
editable both in the diagram and in the property view. This works fine.

However, every time a link is created the direct editing mode is
enabled. As the name is optional, I would like to disable this "editing
upon creation", however later editing, both direct and in the property
view, should be left enabled.

How can I do this? If I missed an already existing explanation please
point me to it. :)

Thanks!

Philip
Re: Disable Automatic Direct (Inline) Editing Upon Creating Link [message #208692 is a reply to message #208353] Wed, 15 October 2008 11:16 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Philip,

Try placing breakpoint into LinkNameEditPart.performDirectEdit() method and
see how it was called on link creation.

-----------------
Alex Shatalin
Re: Disable Automatic Direct (Inline) Editing Upon Creating Link [message #209008 is a reply to message #208692] Mon, 20 October 2008 09:12 Go to previous message
Philip Mayer is currently offline Philip MayerFriend
Messages: 17
Registered: July 2009
Junior Member
Dear Alex,

thanks for your answer. I did that, and probably should cancel editing
in [protected void performDirectEditRequest(Request request)] if the
link was just created.

However, I found no way of getting this information (i.e. that the link
was just created) in any way. Is this information available somewhere?

I ended up checking the Java invocation stack for the class
"ConnectionCreationTool", which works just fine, but I'd rather prefer a
less "low-level" way.

Philip


Alex Shatalin schrieb:
> Hello Philip,
>
> Try placing breakpoint into LinkNameEditPart.performDirectEdit() method
> and see how it was called on link creation.
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:Validating diagrams through a builder
Next Topic:popup menu, how get view?
Goto Forum:
  


Current Time: Fri Apr 26 07:28:13 GMT 2024

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

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

Back to the top