Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Mapping options
Mapping options [message #166880] Fri, 04 January 2008 13:35 Go to next message
Eclipse UserFriend
Originally posted by: andia.maleki.gmail.com

Hi,

is it possible to depent the mapping on an attribute in model?

tnx,
Andia
Re: Mapping options [message #166915 is a reply to message #166880] Fri, 04 January 2008 14:41 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Andia,

What for? Are you talking about feature label mapping or mapping constraints?

-----------------
Alex Shatalin
Re: Mapping options [message #166923 is a reply to message #166915] Fri, 04 January 2008 15:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andia.maleki.gmail.com

for example a Node in model element has an attribute type:String.
so i want to map a Node instance with type = "circle" to an ellipse figure
and and another instance with type = "Rectangle" to a rectangle figure..
Re: Mapping options [message #167087 is a reply to message #166923] Mon, 07 January 2008 15:00 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Andia,

Try using two mode mappings with "circle" and "rectangle" figures + corresponding
OCL constraints specified (see http://wiki.eclipse.org/GMF_Tutorial_Part_2#Mapping_Definiti on_3)

-----------------
Alex Shatalin
Previous Topic:Figure is not a child
Next Topic:Creating a new editor with Diagram
Goto Forum:
  


Current Time: Fri Mar 29 05:01:17 GMT 2024

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

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

Back to the top