Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Location and Set commands
Location and Set commands [message #172993] Tue, 19 February 2008 18: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 11:52 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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 Apr 19 13:46:50 GMT 2024

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

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

Back to the top