|
Re: How to export model data to formats other than XML/XMI [message #428370 is a reply to message #428365] |
Wed, 18 March 2009 14:29 |
J Hoefflinger Messages: 2 Registered: July 2009 |
Junior Member |
|
|
OK, I once again was a victim of not looking at my plugin.xml...
Since I had already generated the plugin prior to changing the "Resource
Type" setting to something other than "none" in the genmodel, the
plugin.xml was filled with the generic reference to the standard
GMFResourceFactory
(org.eclipse.gmf.runtime.emf.core.resources.GMFResourceFacto ry). When
changing to "Basic" (or XMI/XML), the code to override the doSave/doLoad
methods in the ResourceImpl was generated, but the plugin.xml was still
referencing the ResourceFactory as stated above.
Most probably, I will start by going to the "XMI" Resource Type, which
should lead to a generated ResourceFactoryImpl in my .util package with a
more or less exact copy of the platform edition as included before. The
difference no is that I can use the hook and overrid whatever parts I need
and thus can (hopefully) produce a new output stream for my intended
format. Loading will still occur using the original format - in a second
step, I can perhaps serialize/deserialize into just one file if I can get
all information stored in that format...
So for now, I figure this is alright for me - but I still appreciate the
newsgroup as I (and a colleague of mine) can find this kind of info after
reasonable searching...
Cheers, Jens.
(source of the reference
http://dev.eclipse.org/newslists/news.eclipse.technology.gmf /msg03958.html)
|
|
|
Powered by
FUDForum. Page generated in 0.03202 seconds