[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] M9: fragment's installURL

I cannot figure out how to get the install URL for a fragment in M9.

Supposedly, the following API
	config.getDeclaringExtension().getDeclaringPluginDescriptor()
is replaced by
	config.getDeclaringExtension().getNamespace()

So I tried the following:
	IExtension extension = config.getDeclaringExtension();
	String namespace = extension.getNamespace();
	Bundle bundle = Platform.getBundle(namespace);
	URL installURL = bundle.getEntry("/");

It doesn't work for fragments, unfortunately. The implementation of getNameSpace() returns the fragment's "HostIdentifier", so the installURL I get is always the hosting plug-in's.

Any suggestions?