Basic questions about links [message #536246] |
Thu, 27 May 2010 09:22 |
Eclipse User |
|
|
|
I am rather new to GMF and I after some hours spent reading tutorials & books (Eclipse Modeling Project: a DSL Toolkit and others) I still to understand some points.
In particular I am wondering how to realize a link in this situation:
I have a class (Let's call it Button) and this button has a reference called "goTo" to a Page. So far so good. When I have to map it I don't know how.
In particular I have to set this properties of the Link Mapping:
- Containment Feature
- Element
- Source feature
- Target feature
Element is of course the Button itself and Containment feature it is a feature of the class containing the buttons (Page in this case), Target feature is the "goTo". But Source feature what is?
I added a dummy derived feature to Button implemented as "return this" to have a feature of the button representing the button itself but I imagine that is not the intended solution... advices?
Federico
|
|
|
Powered by
FUDForum. Page generated in 0.02440 seconds