Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Programatically creating diagram for my EMF model
Programatically creating diagram for my EMF model [message #213413] Fri, 12 December 2008 13:46 Go to next message
Eclipse UserFriend
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
Re: Programatically creating diagram for my EMF model [message #213462 is a reply to message #213413] Fri, 12 December 2008 15:10 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello aditya,

Check generated ???InitDiagramFileAction - this is a code creating diagram
for an existing model.

-----------------
Alex Shatalin
Previous Topic:showing attribute in label "nameAttribute:TypeAttribute"
Next Topic:Parameterized creation tool?
Goto Forum:
  


Current Time: Thu Apr 18 10:03:34 GMT 2024

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

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

Back to the top