|
Re: Disable label editor for newly inserted symbols [message #209603 is a reply to message #209570] |
Mon, 27 October 2008 12:27 |
Eclipse User |
|
|
|
Originally posted by: knakov.scopeset.de
Hi,
I have found some solution - I use static variable to indicate if the
new object should be labeled immediately after insertion. The variable
is set in the CreateElementCommand (I need this since I show some dialog
box there which indicates if an existing object is added or a new one is
created). Then in the performDirectEdit() method of the edit part I
check if the static variable is set and the clear it so the next time
the object can be labeled with F2. This has 2 disadvantages:
1) It is not object oriented, this static variable is a patch.
2) I rely on the sequence in which doDefaultElementCreation() and
performDirectEdit are called.
Is there a better way to do a conditional run of the label editor on
newly create elements? Perhaps there is some way to transfer a flag or
something. I saw that in the source code the label editor is *always*
started for newly created elements.
Cheers,
Kalin
Kalin Nakov wrote:
> Hi,
>
> I don't want the label editor to be started when I insert a new symbol
> in the diagram. How can I do that?
>
> Thanks in advance,
> Kalin
|
|
|
Powered by
FUDForum. Page generated in 0.03643 seconds