Skip to main content



      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 06:19 Go to next message
Eclipse UserFriend
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 07:16 Go to previous messageGo to next message
Eclipse UserFriend
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 05:12 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 14:09:33 EDT 2025

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

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

Back to the top