Community
Participate
Working Groups
In my development environment I have added a META-INF/sapphire-extension.xml to one of my plugins. However, I'm seeing some weird behavior where Sapphire is reading my extension file twice. This is causing my action that I have listed in the sapphire-extension.xml to be found 2x in the ExtensionsLocatorFactory. The factory find() method will find the framework URL to my sapphire-extension.xml from two different bundleHosts, my own plugin and also org.eclipse.emf.ecore. Actually the extension locator find() method shows that emf.ecore is returning 4 duplicated URLs, my own sapphire-extension.xml and also 3 other duplicated URLs, sapphire.samples, sapphire.swt.graphiti and sapphire.sdk bundles. After debugging find() routine I noticed that BundleLoader#findResources() line 709, is returning my sapphire-extension.xml from both my bundle and from the "emf.ecore" BundleLoader which it is getting from buddy policy resource loading.
Created attachment 197632 [details] deleted patch In this patch modified ExtensionsLocatorFactory to do a small bit of checking to make sure that we don't have add new Handle() object where there has already been a Handle added that holds that same URL
Now you've done it. I guess I can pretend, I haven't seen that patch... Unless you are fine with waiting until 0.3.1 for this to be fixed...
Can I delete the patch? :)
Yeah. Go ahead. Sorry for the misunderstanding. I should have some time to fix this for the 0.3 release, so you don't have to work around on your end.
Comment on attachment 197632 [details] deleted patch patched removed
Comment on attachment 197632 [details] deleted patch >### Eclipse Workspace Patch 1.0 >#P org.eclipse.sapphire.osgi.fragment >patch deleted
Comment on attachment 197632 [details] deleted patch >### Eclipse Workspace Patch 1.0
Fixed.
Verified with build #392
Closing.