Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Is there a possibilty to set Ecore Resource options in Epsilon?
Is there a possibilty to set Ecore Resource options in Epsilon? [message #1410658] Thu, 21 August 2014 10:17 Go to next message
Sebastian Zitzelsberger is currently offline Sebastian ZitzelsbergerFriend
Messages: 33
Registered: August 2014
Member
Hi again,

We are loading emf-models backed by ecore metamodels with epsilon.
EMFModel.load(StringProperties properties,
java.lang.String basePath)

Alternativley we use the corresponding ant-task.

By looking at the source code we found out that the EmfModel class (respectively one of its ancestors) uses Resource.load(java.util.Map<?,?> options) from ecore to load the model.

As our emf-models can and may contain dangling references, we would like to set Options for Resource.load(java.util.Map<?,?> options).

However, I see no way to pass these options to the EmfModel class and the Resource.load in Epsilon always uses null for the options HashMap.

Did i miss something or is there no way to do that?
So far we are using a workaround by loading the model with plain emf and then convert it to an InMemoryEMFModel to use it with epsilon. But that is rather inconvenient and requires us to kinda reimplement/exten the provided ant tasks.

[Updated on: Thu, 21 August 2014 10:19]

Report message to a moderator

Re: Is there a possibilty to set Ecore Resource options in Epsilon? [message #1410665 is a reply to message #1410658] Thu, 21 August 2014 10:45 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2182
Registered: July 2009
Location: York, UK
Senior Member

Hi Sebastian,

I'm afraid that using InMemoryEmfModel is indeed the only way to customise the resource loading/saving process at the moment. Please feel free to submit an enhancement request and we'll try to have a look at this as soon as possible (a patch would help speed things up and would be really appreciated).

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=epsilon

Cheers,
Dimitris
Previous Topic:Query PatternMatchModel from Eunit
Next Topic:[ANT] standalone workflow exception
Goto Forum:
  


Current Time: Thu Sep 19 04:00:41 GMT 2024

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

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

Back to the top