OCL Question [message #560822] |
Sat, 10 September 2005 07:06 |
|
Hi,
this thread started in GMF newsgroup and as Ed suggested, I copied it to this new newsgroup.
To sum it up, I'd like to use my own EPackage.Registry with the EcoreEnvironment.
Details of the problem are described below...
Cheers
/Eike
Vishy, Ed,
Thanks for your answers!
I should have been asking a bit more detailed, because I'm pretty sure
about EMF concepts including resource framework (I developed the CDOResourceImpl).
Regarding EMF-OCL I even digged into the implementation of
static public EPackage org.eclipse.emf.ocl.parser.EcoreEnvironment.findPackage(List packageNames)
There we can find a hard-coded
Map registry = EPackage.Registry.INSTANCE;
for (Iterator iter = registry.values().iterator(); iter.hasNext();) {
...
which even can not be overridden since the method is static ;-(
I have the feeling that some architecture work is still missing to achieve
a degree of customizability similar to that of EMF.
I should have been asking for when this might happen.
Cheers
/Eike
p.s. I'll copy this thread to EMFT newsgroup, too...
vramaswa@ca.ibm.com schrieb:
>
> Hi Eike,
> The resource set has its own local registry. The following is the
> javadoc on the resource set API.
> /**
> * Returns the registry used for looking up a package based namespace.
> * <p>
> * An implementation will typically provide a registry that delegates to
> * the {@link org.eclipse.emf.ecore.EPackage.Registry#INSTANCE global}
> package registry.
> * As a result, registrations made in this registry are <em>local</em>
> to this resource set,
> * i.e., they augment or override those of the global registry.
> * </p>
> * @return the registry used for looking up a package based namespace.
> */
> EPackage.Registry getPackageRegistry();
>
>
> Thanks
> Vishy
Hi,
Is there a possibility to use an EPackage.Registry other than the global one?
Cheers
/Eike
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.05134 seconds