|
|
|
Re: EPackage.Registry [message #429927 is a reply to message #429926] |
Wed, 06 May 2009 18:57 |
|
Alex Boyko schrieb:
> Ed,
>
> It just checks whether the value in the registry is an instance of
> EPackage and not Descriptor. If it's EPackage that meant that it was
> resolved
> The chunk of the code below is what's broken.
>
> for (Iterator iter = EPackage.Registry.INSTANCE.values().iterator();
> iter.hasNext();)
> {
> Object next = iter.next();
>
> if (next instanceof EPackage) {
> // skip descriptors because if the EPackage hasn't been
> // instantiated then it cannot be in use by the client
> EPackage pkg = (EPackage) next;
>
> if (pkgName.equals(pkg.getName()))
Are you aware that the package name is not required to be unique in a
registry?
Cheers
/Eike
----
http://thegordian.blogspot.com
> {
> result = findElement(pkg, id);
> if (result != null) {
> // register the package for subsequent look-ups
> register(pkg, null);
> break;
> }
> }
> }
>
> Thanks.
>
> Cheers,
> Alex
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02920 seconds