Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » OCL Question
OCL Question [message #560822] Sat, 10 September 2005 07:06
Eike Stepper is currently offline Eike StepperFriend
Messages: 6657
Registered: July 2009
Senior Member
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


Previous Topic:Welcome to eclipse.technology.emft!
Next Topic:OCL Question
Goto Forum:
  


Current Time: Sun Dec 04 10:58:44 GMT 2022

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

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

Back to the top