2 GMF Diagrams based on the same model at runtime [message #199466] |
Wed, 30 July 2008 02:42 |
Eclipse User |
|
|
|
Originally posted by: s.gil.gmx.com
Hi all,
I am currently working on a project in which I need to work in 2 or more GMF
diagrams which uses the same model (ecore).
The problem is that the second GMF diagram needs to define its elements
based on the result of the FIRST GMF diagram.
BUT even thought, both of them are running on the same eclipse, I cannot
access the elements created BY the first diagram on the second one.
(Both diagrams use the SAME ecore, and generated classes at runtime.).
Does anyone know how can I do that?
I think it is because both diagrams DO NOT persist the results on the same
"model" file (the result of a GMF diagram, is a diagram file which persists
the graphical things, and a "model file").
Is there a way to make 2 GMF diagrams persist its results on the same
"model" file?
Or is there a way to "import" the "model" results of 1 GMF diagram, into the
"model file" in the second diagram?
Any help appreciated.
Thanks in advance
|
|
|
|
|
|
Re: 2 GMF Diagrams based on the same model at runtime [message #199735 is a reply to message #199564] |
Fri, 01 August 2008 04:50 |
Eclipse User |
|
|
|
Originally posted by: s.gil.gmx.com
Hello, and thanks for your answer..
ill check the links, and try them in my project...
but I what i need in my project is to persist the behaviour of the "Add
Resource.." functionality (Which links the 2 diagram file).
Is there a way i could make this link between the two diagrams permanent?
either at runtime, programatically or modifying the .xml?
thanks in advance.
Santiago Gil
"Alex Shatalin" <vano@borland.com> wrote in message
news:3c3172e624da38cac07a398b3cbd@news.eclipse.org...
> Hello Santiago,
>
> Try calling "Initialize <2-nd>_diagram diagram file" popup menu action on
> the .model file created by first diagram. As a result you should be able
> to choose elements created on 1-st diagram and create 2-nd diagram for
> them. This is a way to "link" two diagrams with the same model file. In
> addition diagram partitioning feature can be useful for youe use cases:
> http://wiki.eclipse.org/GMF_2.0_New_and_Noteworthy#Basic_sup port_for_diagram_partitioning.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02474 seconds