Skip to main content



      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 05:06 Go to next message
Eclipse UserFriend
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 10:24 Go to previous message
Eclipse UserFriend
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.
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: Tue Jul 15 04:55:24 EDT 2025

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

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

Back to the top