Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [epsilon] Loading of model resources
[epsilon] Loading of model resources [message #599688] Thu, 24 May 2007 07:01
Aleksander Bandelj is currently offline Aleksander Bandelj
Messages: 98
Registered: July 2009
Member
Epsilon seems to load EMF resources through FileInputStreams with
absolute paths. This breaks resolving of EMF proxies (EMF can't match
resolved URIs of resources in resource set). In other words, dynamic
models, composed of several ecore files don't work. I managed to fix
that by replacing

metamodel.load(getInputStream(metamodelFile), Collections.EMPTY_MAP);

with

metamodel=
resourceSet.getResource(URI.createPlatformResourceURI(metamo delFile,
false), true);

in EmfModel.java.

- a
Previous Topic:[MOFSCRIPT] version 1.2.1 is not working
Next Topic:[epsilon] Loading of model resources
Goto Forum:
  


Current Time: Tue Sep 02 05:11:32 EDT 2014

Powered by FUDForum. Page generated in 0.17083 seconds