[ATL] Programmatically loading meta-models where one references the other [message #90235] |
Fri, 19 September 2008 15:10 |
Chris Franklin 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
|
|
|
Powered by
FUDForum. Page generated in 0.02729 seconds