Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Where mapping definition elements explaint?
Where mapping definition elements explaint? [message #755099] Mon, 07 November 2011 06:37 Go to next message
Johnnyboy  is currently offline Johnnyboy
Messages: 39
Registered: September 2011
Member
Hello everyone,

I want to start with GMF. But I don't know how to use the mapping model. I followed the official tutorial http://wiki.eclipse.org/Graphical_Modeling_Framework/Tutorial/Part_1.
After that I tried to find some words like Feature Label Mapping or Node Mapping and so on in the Deveplopment Guidelines and in the Online Documentation. But I did not find an explanation.
Where can I find a good (and if possible easy to read) explanation for the model type? E.g. where is descriped which nodes and links I have to set. Where is descriped what a Link Mapping or Node Mapping is or why I had to set the DiagramLabelTopicName fot the Diagram Label in the tutorial (and what is that)?

I would be grateful for any answer Smile

Thanks in advance
Jonnyboy
Re: Where mapping definition elements explaint? [message #755130 is a reply to message #755099] Mon, 07 November 2011 08:29 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 737
Registered: July 2009
Location: Grenoble, France
Senior Member
Maybe this would help:
http://wiki.eclipse.org/Graphical_Modeling_Framework/Models/GMFMap

Regards,
--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: Where mapping definition elements explaint? [message #756248 is a reply to message #755130] Fri, 11 November 2011 11:30 Go to previous messageGo to next message
Hoang  is currently offline Hoang
Messages: 45
Registered: September 2011
Location: Milan
Member
Hi Mickael,

In fact, I have the same problem understanding the first tutorial. I am interested in this question.
On the link that you suggested, is it possible if you update the information that are missing there?

I would like to know more about how to achieve this:
Quote:
Use same creation tool to create various diagram elements
Multiple mappings can point to same tool definition in the .gmftool model. Transformation (.gmfmap -> .gmfgen) is smart enough to recognize this case and creates only one tool capable of creating several metamodel types. It's not possible to use the same tool to create both nodes and links, however.


Thanks,
Re: Where mapping definition elements explaint? [message #756548 is a reply to message #756248] Mon, 14 November 2011 04:27 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 737
Registered: July 2009
Location: Grenoble, France
Senior Member
> I would like to know more about how to achieve this:
> Quote:
>> Use same creation tool to create various diagram elements
>> Multiple mappings can point to same tool definition in the .gmftool
>> model. Transformation (.gmfmap -> .gmfgen) is smart enough to
>> recognize this case and creates only one tool capable of creating
>> several metamodel types. It's not possible to use the same tool to
>> create both nodes and links, however.

In your .gmfmap, when you create a node mapping, the node mappong
contains a "create tool" attibute, that links to an entry in your
palette (.gmftool).
You can simply use the same palette entry for several node mappings, it
will work.


--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: Where mapping definition elements explaint? [message #757106 is a reply to message #756548] Wed, 16 November 2011 09:16 Go to previous message
Hoang  is currently offline Hoang
Messages: 45
Registered: September 2011
Location: Milan
Member
Hi,

I think the best way is to learn by examples. I suggest you to look at the GMF Tutorial 1 in this url: http://gmfsamples.tuxfamily.org/wiki/doku.php?id=gmf_tutorial1

Try following as many tutorials as you can here: http://gmfsamples.tuxfamily.org/wiki/doku.php then you'll understand what Node Mappings and Link Mappings are.

I have created the one for myself at this url: https://github.com/pnhoang/Selflet

[Updated on: Sun, 20 November 2011 08:32]

Report message to a moderator

Previous Topic:[SOLVED] How to build this type of diagram?
Next Topic:Mapping of Ecore with packages
Goto Forum:
  


Current Time: Wed Jul 30 19:31:27 EDT 2014

Powered by FUDForum. Page generated in 0.01653 seconds