[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] M9: fragment's installURL
|
- From: Ganghua Guo <gguo@xxxxxxxxxxx>
- Date: Sat, 22 May 2004 16:29:17 -0700
- Newsgroups: eclipse.platform
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
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?