Location and Set commands [message #172993] |
Tue, 19 February 2008 13:16  |
Eclipse User |
|
|
|
Originally posted by: trommas.yahoo.com
In xyzDiagramEditorUtil, i add some elements - just adding them to the
diagram that gets created. However, I need to set their location. I know
how to do this with an EditPart. Any ideas?
Also, another place, I do a Set command to set the name of a node after
creating it. However, since the stack needs to execute the create
command before it can do the Set request, the hole action becomes
non-undoable. Any ideas?
Tomas
|
|
|
Re: Location and Set commands [message #173111 is a reply to message #172993] |
Wed, 20 February 2008 06:52  |
Eclipse User |
|
|
|
Hello Tomas,
> In xyzDiagramEditorUtil, i add some elements - just adding them to the
> diagram that gets created. However, I need to set their location. I
> know how to do this with an EditPart. Any ideas?
You have to create not only domain model element, but oeg.runtime.notation.Node
instance. It is possible to set corresponding LayoutConstraints for this
instance.
-----------------
Alex Shatalin
|
|
|
Powered by
FUDForum. Page generated in 0.03610 seconds