Skip to main content



      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 06:17 Go to next message
Eclipse UserFriend
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 06:19] by 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 06:45 Go to previous message
Eclipse UserFriend
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: Fri Jul 11 22:03:15 EDT 2025

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

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

Back to the top