Using meta-model ereferences for connections [message #778218] |
Wed, 11 January 2012 13:33  |
Eclipse User |
|
|
|
Hi there,
Sorry, I am rather new at this and am digging my way through the tutorial and perhaps I have not gotten to the pertinent information yet.
The problem I am trying to solve is as follows: I have an ecore meta-model which has a set of EClasses (Goal, Strategy, and so on). Each EClass contains one or more EReferences (subgoals, goalstrategies, strategygoals, etc). Some are self-referential (relating a Goal to a different Goal) and some are heterogeneous (Goal to Strategy, Strategy to Goal).
What I would like to do is to relate the actual EReference type (subgoals, goalstrategies,...) to a connection feature. The tutorial makes reference to simply an EReference. But it does not seem to use a distinct instance related to an EClass.
Is there a way to access the actual EReferences in my meta-model for a particular EClass and then create a "domain object" that is related to this reference and hence the given instance of the class (as represented by a shape feature)?
Sorry again if I am missing something obvious and I would be more than willing to clarify my issue if needed.
Thanks in advance,
Josef
|
|
|
|
Re: Using meta-model ereferences for connections [message #778509 is a reply to message #778388] |
Thu, 12 January 2012 18:06  |
Eclipse User |
|
|
|
Hi again,
So I am sort of tossing my hands up as I do not have much to go on. Does anyone have an example where connections are derived from EClasses in the model? (The tutorial and the few examples on line do not seem to have this feature. The presentation from EclipseCon 2011 by Koen Aers comes close but is light on some of the details about the model itself.) I guess I am not certain if this is a problem with the model itself and Graphiti is silently balking or if there is a simpler (and possibly naive ) problem.
Thanks,
Josef
|
|
|
Powered by
FUDForum. Page generated in 0.04170 seconds