Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Trouble using multiple creation tools on a same node
Trouble using multiple creation tools on a same node [message #148033] Tue, 28 August 2007 07:13 Go to next message
Fabrice Dubach is currently offline Fabrice DubachFriend
Messages: 43
Registered: July 2009
Member
Hello,

I try to have a diagram with several creation tools creating a same class
node with different figures.
So, I have :
- a node class named MyNode,
- two figures named MyNodeFigure1 and MyNodeFigure2
- two creation tools, Creation Tool 1 (attaching MyNodeFigure1 to a MyNode
node) and Creation Tool 2 (attaching MyNodeFigure2 to a MyNode node)

The Creation tool 2 is the second generated creation tool in the order of
appearance in the map file and it does not work...

Objects created by Creation Tool 2 don't appeared until you move (with the
mouse) an other object on the diagram. Furthermore, these objects are
created using the figure MyNodeFigure1 (corresponding to the first tool, and
not the second one).

This trouble is easily reproducible and it is really blocking for me.
Someone could help me to fix it ? I use the latest release GMF 2.0.

Thanks,
Fabrice Dubach
Re: Trouble using multiple creation tools on a same node [message #149792 is a reply to message #148033] Mon, 10 September 2007 16:34 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Fabrice,

Looks like MyNodeFigure2 will be substituted by MyNodeFigure1 just after
creation because GMF can not destinguish between these two nodes while performing
diagram update. I suggest you to generate non-synchronized diagram or add
some property to your domain model + corresponding constraints to both node
mappings helping GMF to destinguish between MyNodeFigure1 and MyNodeFigure2.

-----------------
Alex Shatalin
Re: Trouble using multiple creation tools on a same node [message #149915 is a reply to message #149792] Tue, 11 September 2007 09:00 Go to previous message
Fabrice Dubach is currently offline Fabrice DubachFriend
Messages: 43
Registered: July 2009
Member
Alex,

As you suggest, I added constraints on my two kinds of node and all is
running well. Obviously, as you said, it's help a bit GMF to link object
nodes with representative nodes !

Thanks a lot,
Fabrice
Previous Topic:to obtain EditPart source when one created a connection
Next Topic:how to change the model and refresh the diagram when a new Property Section is defined
Goto Forum:
  


Current Time: Tue Jul 16 10:12:48 GMT 2024

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

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

Back to the top