Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » changing output format (XMI)
changing output format (XMI) [message #771635] Tue, 27 December 2011 14:59 Go to next message
Eclipse UserFriend
Hello,

I have been using the GMF Modeling framework for a while but i got stuck at a certain point.

I am trying to get the output diagram in an XMI 2.X format but actually i couldn't change the output format...So can anybody help me changing the diagram's output format?

the way i use for checking the output format ist right click on the diagram file and open with text editor...the output format is XMI though but i just wanna modify some parts of it to follow a specific XMI format that i am following.

Please let me know if you want to check the 2 formats.

Thanks for your help!

Mostafa.
Re: changing output format (XMI) [message #771820 is a reply to message #771635] Wed, 28 December 2011 03:36 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

this might help you:

Quote:
If you want to serialize your objects in a format other than XMI, that can be arranged as well. You will need to supply your own serialization and parsing code. Create your own resource class (as a subclass of ResourceImpl) that implements your preferred serialization format, and then either register it locally with your resource set, or with the global factory registry if you want it to always be used with your model. from http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=%2Forg.eclipse.emf.doc%2Freferences%2Foverview%2FEMF.html


This is what GMF uses: http://publib.boulder.ibm.com/infocenter/rsmhelp/v7r0m0/index.jsp?topic=/org.eclipse.gmf.doc/reference/api/runtime/org/eclipse/gmf/runtime/emf/core/resources/GMFResource.html

Hope that helps.

Ralph
Re: changing output format (XMI) [message #771916 is a reply to message #771820] Wed, 28 December 2011 09:19 Go to previous messageGo to next message
Eclipse UserFriend
Hey,

I think if i installed UML2 "http://www.eclipse.org/modeling/mdt/?project=uml2" & eclipse UMLT Tools "http://www.eclipse.org/modeling/mdt/?project=uml2tools" i should get my desired structure for the output format...but there're lots of conflicts with the GMF and the UML2! did you manage to solve it?

Thanks,
Mostafa.
Re: changing output format (XMI) [message #777465 is a reply to message #771916] Tue, 10 January 2012 10:02 Go to previous message
Eclipse UserFriend
Hi,

you can specify the ResourceFactory, see http://wiki.eclipse.org/EMF/FAQ#How_do_I_use_EMF_in_standalone_applications_.28such_as_an_ordinary_main.29.3F

Regards,
Previous Topic:compartment background transparent
Next Topic:Rectangle "outline - false" does not work correctly
Goto Forum:
  


Current Time: Fri Nov 07 12:02:25 EST 2025

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

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

Back to the top