Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » multiple views of a model
multiple views of a model [message #95809] Tue, 23 January 2007 15:26 Go to next message
Eclipse UserFriend
I'm trying to create multiple views of a model with GMF 2.0. Would like
to know if there is any discussion of approaches to do this. I need to
have different views at different levels of the model hierarchy.

I've started by creating a (common) .gmfgraph and .gmftool files. I
then created multiple versions of the .gmfmap and .gmfgen for the two
different views and set the "Package Name Prefix" and "Diagram File
Extension" for each of the views in the .gmfgen files. The problem
comes in that when generating the code, the generator creates the code
packages in the same project (... .diagram) which isn't even the project
that I created as my GMF project! Since it puts both sets of code
packages in the same (plugin) project, only the last generated one is
accessible when running. How do I change this behavior, is there some
property where I can specify which project the generated (GFM) code
packages will be placed?
Re: multiple views of a model [message #95964 is a reply to message #95809] Wed, 24 January 2007 05:59 Go to previous messageGo to next message
Eclipse UserFriend
Hello John,

Try changing plugin id attribute in .gmfgen models: http://wiki.eclipse.org/index.php/GMF_GenModel_Hints#GenPlug in

-----------------
Alex Shatalin
Re: multiple views of a model [message #96049 is a reply to message #95809] Wed, 24 January 2007 08:41 Go to previous message
Eclipse UserFriend
Originally posted by: pramsohl.in.tum.de

Take a look at this Tutorial:
http://wiki.eclipse.org/index.php/GMF_Tips#Sharing_single_Ed itingDomain_instance_across_several_diagrams

I think you have to change mor than the file extension.


"John Yotka" <john.yotka@datria.com> schrieb im Newsbeitrag
news:ep5qv4$vip$1@utils.eclipse.org...
> I'm trying to create multiple views of a model with GMF 2.0. Would like
> to know if there is any discussion of approaches to do this. I need to
> have different views at different levels of the model hierarchy.
>
> I've started by creating a (common) .gmfgraph and .gmftool files. I then
> created multiple versions of the .gmfmap and .gmfgen for the two different
> views and set the "Package Name Prefix" and "Diagram File Extension" for
> each of the views in the .gmfgen files. The problem comes in that when
> generating the code, the generator creates the code packages in the same
> project (... .diagram) which isn't even the project that I created as my
> GMF project! Since it puts both sets of code packages in the same
> (plugin) project, only the last generated one is accessible when running.
> How do I change this behavior, is there some property where I can specify
> which project the generated (GFM) code packages will be placed?
Previous Topic:How to diplay a picture on the diagram editor?
Next Topic:Is it possible to create a connection before its source and target elements are created?
Goto Forum:
  


Current Time: Mon Jul 21 22:04:48 EDT 2025

Powered by FUDForum. Page generated in 0.05824 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top