Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Programmatically loading meta-models where one references the other
[ATL] Programmatically loading meta-models where one references the other [message #90235] Fri, 19 September 2008 15:10
Chris Franklin is currently offline Chris FranklinFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

I'm trying to load two meta models using the following code:

URL eventbMMURL = new URL(plugin.getBaseURL(), "eventb.ecore");
ASMModel eventbMM = modelHandler.loadModel("eventb",
modelHandler.getMof(), eventbMMURL.openStream());
URL compositionMMURL = new URL(plugin.getBaseURL(), "composition.ecore");
ASMModel compositionMM = modelHandler.loadModel("composition",
modelHandler.getMof(), compositionMMURL.openStream());

The composition meta model references the Event-B meta model, when I run
the above code I get a string of warnings printed out, e.g.

"WARNING: Resource for org.eclipse.emf.ecore.impl.EClassImpl@dc135d
(eProxyURI: eventb.ecore#//events/BAnyEvent) is null; cannot be referenced"

What do I have to do so the composition MM can "see" the event-b MM?

Thanks,

Chris
Previous Topic:Re: Model instance transformation framework
Next Topic:[ATL] XText DSL -->UML
Goto Forum:
  


Current Time: Thu Mar 28 15:23:55 GMT 2024

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

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

Back to the top