Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDisable Automatic Direct (Inline) Editing Upon Creating Link
https://www.eclipse.org/forums/index.php/mv/msg/66334/208353/#msg_208353
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]]>Philip Mayer2008-10-11T10:19:01-00:00Re: Disable Automatic Direct (Inline) Editing Upon Creating Link
https://www.eclipse.org/forums/index.php/mv/msg/66334/208692/#msg_208692
Try placing breakpoint into LinkNameEditPart.performDirectEdit() method and
see how it was called on link creation.
-----------------
Alex Shatalin]]>Alexander Shatalin2008-10-15T11:16:28-00:00Re: Disable Automatic Direct (Inline) Editing Upon Creating Link
https://www.eclipse.org/forums/index.php/mv/msg/66334/209008/#msg_209008
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
>
>]]>Philip Mayer2008-10-20T09:12:57-00:00