Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Diagram xmi file
Diagram xmi file [message #179093] Wed, 26 March 2008 12:14 Go to next message
Eclipse UserFriend
Originally posted by: fawadrehan.hotmail.com

Hi everybody,

I am new in GMF. my question is in which generated class XMI file is being
written. I want to customize it. any example or tutorial please.


Thanks in advance
Re: Diagram xmi file [message #179180 is a reply to message #179093] Wed, 26 March 2008 13:26 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Your model and the diagram can be stored in the same resource or in
separate resources. You probably doesn't want to specialize how the
digram is serialized and hence probably should configure GMF to keep
your model in a separate file and then specialize only the serialization
of your model file. The latter would be done by registering your own
resource factory to create your own specialized resource
implementation. Generally it's better to try to stick to using extended
metadata annotations on your model as a way to affect how the data is
serialized or deserialized since the implementation of things like
XMLHelperImp, XMLHandler, and XMLSaveImpl are very complex. Probably
having a look at a simple model generated from an XML Schema will help
you understand the infrastructure. Try the library tutorial for that.
Generating the Test Code and looking in the *.tests project for the
XyzExample.java will help you understand how resource factories are
registered...


fawad wrote:
> Hi everybody,
>
> I am new in GMF. my question is in which generated class XMI file is
> being written. I want to customize it. any example or tutorial please.
>
>
> Thanks in advance
>
>
Previous Topic:Calling different diagram file on ctrl+Click on element
Next Topic:Layout?
Goto Forum:
  


Current Time: Fri Apr 26 21:43:58 GMT 2024

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

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

Back to the top