Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » two diagram views on one model
two diagram views on one model [message #157190] Fri, 26 October 2007 09:58 Go to next message
Eclipse UserFriend
Originally posted by: benholtz.gmx.de

Hello to all,

I have one MetaModel which contains all elements. At the end I will have one
editor which has one model file and two diagram files. In both diagram files
I want to see another view of the model. The model file contains all
elements of the two diagram files.

Now I have two gmftool, gmfmap and gmfgen files in one project. Both gmfgen
files generate the diagram code into the .diagram project. I think, they
have to be generated into different projects, because the plugin.xml is
always overwritten if I start one of the generation processes.

In the diagram files are some elements pointing to the same model element in
the model file.

Is there a workaround about this problem? Or a tutorial? I didn't find
anything belongs to this topic.

Best regards,
Benjamin Holtz
Re: two diagram views on one model [message #157208 is a reply to message #157190] Fri, 26 October 2007 10:15 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Benjamin,

See http://wiki.eclipse.org/GMF_GenModel_Hints. You have to made all the
properties mentioned as "unique" in that document really unique in your .gmfgen
model.

-----------------
Alex Shatalin
Re: two diagram views on one model [message #157215 is a reply to message #157208] Fri, 26 October 2007 11:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: benholtz.gmx.de

Ok, I maked the IDs unique. Now I can model two diagrams in the editor. But
each diagram has got his own model file. If I want to use the same model
file, the wizard says that this file already exists. What is wrong?

Benjamin

"Alex Shatalin" <vano@borland.com> wrote in message
news:3c3172e6198158c9e5e10c8dc08e@news.eclipse.org...
> Hello Benjamin,
>
> See http://wiki.eclipse.org/GMF_GenModel_Hints. You have to made all the
> properties mentioned as "unique" in that document really unique in your
> .gmfgen model.
>
> -----------------
> Alex Shatalin
>
>
Re: two diagram views on one model [message #157231 is a reply to message #157215] Fri, 26 October 2007 12:14 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Ho Benjamin,

You may also use the generated menu item "Initialize XYZ diagram file"
to create a diagram based on an existing model file.

Best regards,
Boris

Benjamin Holtz wrote:
> Ok, I maked the IDs unique. Now I can model two diagrams in the editor. But
> each diagram has got his own model file. If I want to use the same model
> file, the wizard says that this file already exists. What is wrong?
>
> Benjamin
>
> "Alex Shatalin" <vano@borland.com> wrote in message
> news:3c3172e6198158c9e5e10c8dc08e@news.eclipse.org...
>> Hello Benjamin,
>>
>> See http://wiki.eclipse.org/GMF_GenModel_Hints. You have to made all the
>> properties mentioned as "unique" in that document really unique in your
>> .gmfgen model.
>>
>> -----------------
>> Alex Shatalin
>>
>>
>
>
Re: two diagram views on one model [message #157239 is a reply to message #157231] Fri, 26 October 2007 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: benholtz.gmx.de

I think, all diagrams will have the same tools when they are initialized in
this case. But I want, that each instance has got his own tooling
definition.
I think I will let two model and two diagram files in the editor and will
reference the model files among each other.

Benjamin

"Boris Blajer" <boris.blajer@borland.com> wrote in message
news:ffslo5$ifr$1@build.eclipse.org...
> Ho Benjamin,
>
> You may also use the generated menu item "Initialize XYZ diagram file" to
> create a diagram based on an existing model file.
>
> Best regards,
> Boris
>
Re: two diagram views on one model [message #157298 is a reply to message #157239] Fri, 26 October 2007 16:18 Go to previous message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Benjamin,

If you create a XYZ diagram and then initialize ZYX diagram based on the
same file, you will get two completely different notational models
referencing the same underlying model. These two will have their own set
of tools, editparts and whatever else.

Best regards,
Boris

Benjamin Holtz wrote:
> I think, all diagrams will have the same tools when they are initialized in
> this case. But I want, that each instance has got his own tooling
> definition.
> I think I will let two model and two diagram files in the editor and will
> reference the model files among each other.
>
> Benjamin
>
> "Boris Blajer" <boris.blajer@borland.com> wrote in message
> news:ffslo5$ifr$1@build.eclipse.org...
>> Ho Benjamin,
>>
>> You may also use the generated menu item "Initialize XYZ diagram file" to
>> create a diagram based on an existing model file.
>>
>> Best regards,
>> Boris
>>
>
Previous Topic:How to capture the event mouseOver
Next Topic:Sharing Single Editing Domain in GMF
Goto Forum:
  


Current Time: Tue Nov 19 14:50:57 GMT 2024

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

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

Back to the top