Re: GMF Help: no mapping options in mapping def wizard [message #147902] |
Mon, 27 August 2007 07:42  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Peter,
It's best to use the GMF newsgroup, which I've added to the "to" list of
the reply, for GMF-specific questions.
Peter White wrote:
> I created a simple ecore model with two classes: ModelObject and ModelObjectConnection. The ModelObjectConnection has two associations to ModelObject, allowing it to represent a connection between two ModelObjects. All properties are strings. I generated the EMF and EMF editor code ok. My problem is in creating the GMF mapping. I followed the cheatsheet GMF tutorial, substituting my own model for the 'mindmap' example. I got as far as creating a mapping definition, but the wizard showed empty lists, so I couldn't map anything. Any tips appreciated.
>
|
|
|
Re: GMF Help: no mapping options in mapping def wizard [message #147976 is a reply to message #147902] |
Mon, 27 August 2007 14:29  |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
GMF mapping wizard relies on containment references to discover diagram
structure; basically you specify EClass of diagram canvas and it
traverses it's containment references to find nodes and links. If there
are no containments in your model it will find nothing but the diagram
EClass.
Ed Merks wrote:
> Peter,
>
> It's best to use the GMF newsgroup, which I've added to the "to" list of
> the reply, for GMF-specific questions.
>
>
> Peter White wrote:
>> I created a simple ecore model with two classes: ModelObject and
>> ModelObjectConnection. The ModelObjectConnection has two associations
>> to ModelObject, allowing it to represent a connection between two
>> ModelObjects. All properties are strings. I generated the EMF and EMF
>> editor code ok. My problem is in creating the GMF mapping. I followed
>> the cheatsheet GMF tutorial, substituting my own model for the
>> 'mindmap' example. I got as far as creating a mapping definition, but
>> the wizard showed empty lists, so I couldn't map anything. Any tips
>> appreciated.
>>
|
|
|
Powered by
FUDForum. Page generated in 0.08032 seconds