Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Tuning genmodel parameters to change XMI file
Tuning genmodel parameters to change XMI file [message #1861369] Mon, 09 October 2023 09:06 Go to next message
Leonard Theisler is currently offline Leonard TheislerFriend
Messages: 16
Registered: September 2023
Junior Member
Hi,

Sirius saves the model in an xmi and I am trying to change the way it saves it in order for the model to be compatible with another tool. It would be very convenient to achieve this as I would not have to make a script to do it manually, and all models made with my editor will be natively compatible with the other tool. The main changes that I need to make are namespaces and capitalizations so that it matches the conventions from the other tool. I have been told that I can do this by tuning the parameters of the genmodel file but I can't seem to find out how to do that, could anyone let me know how to?

Thank you
Re: Tuning genmodel parameters to change XMI file [message #1861446 is a reply to message #1861369] Thu, 12 October 2023 14:24 Go to previous message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 705
Registered: July 2009
Senior Member
Hi.
This is more an EMF question than a Sirius one.
When saving a semantic model/resource part of a Sirius session, Sirius will simply call EMF's "org.eclipse.emf.ecore.resource.Resource.save()" on it.
The actual Resource implementation class used depends on how you configured your metamodel at the EMF level.
See for example the org.eclipse.emf.ecore.extension_parser extension point to associate a particular resource factory (and ultimately the concrete Resource implementation) that handles a specific file (or URI) extension.


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Invoking java services on a double click action
Next Topic:Setting properties of child in properties tab of parent
Goto Forum:
  


Current Time: Thu Oct 10 03:46:24 GMT 2024

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

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

Back to the top