Disable Automatic Direct (Inline) Editing Upon Creating Link [message #208353] |
Sat, 11 October 2008 06:19  |
Eclipse User |
|
|
|
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 #209008 is a reply to message #208692] |
Mon, 20 October 2008 05:12  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03528 seconds