Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Location and Set commands
Location and Set commands [message #172993] Tue, 19 February 2008 13:16 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Creating Elliptical
Next Topic:Two graphical views of the same metamodel element
Goto Forum:
  


Current Time: Fri Aug 29 06:24:21 EDT 2025

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

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

Back to the top