|
Re: One metamodel Two Diagrams [message #556297 is a reply to message #556244] |
Tue, 31 August 2010 16:06 |
masija . Messages: 59 Registered: July 2010 |
Member |
|
|
Hi Fabricio,
I had a simmilar problem, so maybe I can help you.
I had to develope two different "perspectives" on the same metamodel. So I developed two gmf-plugins, using the same ecore-model, but provided for each diagram only graphical representations for the needed elements.
After this step i used for both diagrams a shared editing domain, and a semi-canonical diagram behavior.
For these two steps the ressources provided by gmftools (see http://code.google.com/p/gmftools/ ) were very helpfull.
i think for you the following wiki-pages of gmf tools could be interesting:
SharedEditingDomain:
http://code.google.com/p/gmftools/wiki/SharedEditingDomain
The steps here are performed with the gmf M2M-transformation provided by the de.itemis.gmf.tools plug-in as a toolbar button, but I did the most parts manually.
SemiCanonicalDiagramEditPolicy:
http:// code.google.com/p/gmftools/wiki/SemiCanonicalDiagramEditPoli cy
Especially the part "Enable Dropping of Semantic Elements onto the Diagram" where a GenericDiagramDropEditPolicy is used to support drag and drop of the elements, which are currently not part of the diagram.
i hope I could help you. If this could be a solution for your problem, and you need some additional help, pleas feel free to ask again
Best regardy,
Masija
|
|
|
Re: One metamodel Two Diagrams [message #556736 is a reply to message #556297] |
Thu, 02 September 2010 13:27 |
Christophe Bouhier Messages: 937 Registered: July 2009 |
Senior Member |
|
|
On 31-08-10 18:06, Masija wrote:
> Hi Fabricio,
> I had a simmilar problem, so maybe I can help you.
> I had to develope two different "perspectives" on the same metamodel. So
> I developed two gmf-plugins, using the same ecore-model, but provided
> for each diagram only graphical representations for the needed elements.
> After this step i used for both diagrams a shared editing domain, and a
> semi-canonical diagram behavior.
> For these two steps the ressources provided by gmftools (see
> http://code.google.com/p/gmftools/ ) were very helpfull.
Be carefull with GMFTools , it breaks with Helios release. (Latest GMF
code templates are not compatible with the GMFTools customized templates).
>
> i think for you the following wiki-pages of gmf tools could be interesting:
> SharedEditingDomain:
> http://code.google.com/p/gmftools/wiki/SharedEditingDomain The steps
> here are performed with the gmf M2M-transformation provided by the
> de.itemis.gmf.tools plug-in as a toolbar button, but I did the most
> parts manually.
>
> SemiCanonicalDiagramEditPolicy:
> http://code.google.com/p/gmftools/wiki/SemiCanonicalDiagramE ditPolicy
> Especially the part "Enable Dropping of Semantic Elements onto the
> Diagram" where a GenericDiagramDropEditPolicy is used to support drag
> and drop of the elements, which are currently not part of the diagram.
> i hope I could help you. If this could be a solution for your problem,
> and you need some additional help, pleas feel free to ask again ;)
>
> Best regardy,
> Masija
>
>
|
|
|
|
|
|
Re: One metamodel Two Diagrams [message #556863 is a reply to message #556839] |
Thu, 02 September 2010 21:00 |
Fernando Herrera Messages: 49 Registered: January 2010 |
Member |
|
|
I tried with gmf tools and I have gotten the same result: The shared domain doesn't work. Try with this: http://wiki.eclipse.org/GMF_Tips. If your diagrams figures(nodes and links) access diferent domain elements and them can be organized in packages like one package for diagram it is a good idea do it before follow the tutorial I have done this work and I can get work!. After finish the tutorial, create a new diagram with the root element of your dsl. After that, you can create aditional elements and if you do right click over the domain file, you will se initialize ... diagram and you have to select wich diagram create and wich element in the domain is the root for that diagram. Regards
Fernando
[Updated on: Thu, 02 September 2010 21:01] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03624 seconds