Diagram xmi file [message #179093] |
Wed, 26 March 2008 12:14 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02952 seconds