|
Re: dynamic_package loading metamodels [message #502488 is a reply to message #502445] |
Tue, 08 December 2009 14:18 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
Simon,
Comments below.
Simon wrote:
> Hello Community,
>
> I created 3 .ecore files and tried to load them with the extension
> point dynamic_package of org.eclipse.emf.ecore.
> It looks like:
>
>
> <extension
> point="org.eclipse.emf.ecore.dynamic_package">
> <resource
> location="models/MDPE-Core-New.ecore"
> uri="http://www.modelplex.org/amf/2008/MDPE/Core-New">
> </resource>
> <resource
> location="models/MDBPE-Company-Core.ecore"
> uri="http://www.modelplex/amf/2008/MDBPE/Company/Core">
> </resource>
> <resource
> location="models/MDBPE-Department-Core.ecore"
> uri="http://www.modelplex/amf/2008/MDBPE/Department/Core">
> </resource> </extension>
>
>
> After starting a new Runtime-Configuration I find the package
> registered, when I check it for instance in the Metamodel Explorer.
> But when I try to load a model, which uses these metamodels, then
> Eclipse cannot find the used elements of the metamodel.
The should appear in the EPackage.Registry.INSTANCE just like a
registered generated package and should be found just as any other. I'm
not sure why that sound't be the case for you.
> Also when I try to create in the runtime configuration a new metamodel
> which should extend one of the registered metamodels, I cannot load
> one of these through "Load Resource", only possible loading as
> "Runtime Version" and not as "Development Time Version". By the way
> what are the difference between these to versions?
Given there is no GenModel for these, there is no development time
version. The development time version is always a dynamic one, but it's
not registered because the generated one is registered instead; it's
wrapped by a GenModel and available in that way.
>
> Any ideas I would appreciate.
> Simon
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03927 seconds