Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » changing output format (XMI)
changing output format (XMI) [message #771635] Tue, 27 December 2011 19:59 Go to next message
Mostafa Fouly is currently offline Mostafa FoulyFriend
Messages: 24
Registered: December 2011
Junior Member
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 08:36 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
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 14:19 Go to previous messageGo to next message
Mostafa Fouly is currently offline Mostafa FoulyFriend
Messages: 24
Registered: December 2011
Junior Member
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 15:02 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

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,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:compartment background transparent
Next Topic:Rectangle "outline - false" does not work correctly
Goto Forum:
  


Current Time: Sat Apr 27 01:17:02 GMT 2024

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

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

Back to the top