Programatically creating diagram for my EMF model [message #213413] |
Fri, 12 December 2008 13:46 |
Eclipse User |
|
|
|
Originally posted by: avikram.novell.com
Hi,
I have my GMF mapping for my EMF model and the GMF editor works perfectly
with the model.
Now I want to bootstrap my EMF model with a huge resource file and create a
diagram for the same. I can copy/paste the EMF model into the *_model file
and then open the GMF editor for the *_diagram file and it works fine but I
am not able to do the same programatically.
Here is what I intend to do,
a. Open the GMF editor, provide him the *_model file as the input
b. The GMF editor checks whether it has the Diagram node in the input file.
c. If it's there it opens up fine
d. If it's not there, it tries loading up the model and then creates the
_diagram resource to hold up the diagram for the model.
Till a,b,c I've got it implemented (or GMF provides me), d is something I
want help for. How do I create the diagram for an existing model
dynamically ( i've all the mappings & the code generated which is working
otherwise)
Thanks for any kind of help.
--aditya
|
|
|
|
Powered by
FUDForum. Page generated in 0.02029 seconds