Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] Re: Substitute for getDeclaringPluginDescriptor(), which is deprecated.


Never mind. I think I figured it out. I can do the following:

String namespace = configElem.getDeclaringExtension().getNamespace();
URL url = "">
URL resolveURL =Platform.resolve(url);
String pluginPath = resolveURL.getPath();

Rajeev
                               
----- Forwarded by Rajeev Sikka/Beaverton/IBM on 04/05/2005 11:07 PM -----
Rajeev Sikka

04/05/2005 05:23 PM

       
        To:        pde-dev@xxxxxxxxxxx
        cc:        
        From:        Rajeev Sikka/Beaverton/IBM@IBMUS
        Subject:        Substitute for getDeclaringPluginDescriptor(), which is deprecated.


Hi,

I had the following code:

IConfigurationElement configElem = ....
                       
try {
        String pluginPath = Platform.resolve(configElem.getDeclaringExtension().getDeclaringPluginDescriptor().getInstallURL()).getPath();
        ....
}

getDeclaringPluginDescriptor() on IExtension is deprecated, and
getInstallURL() on IPluginDescriptor is deprecated.

What is the alternate way to do what I am doing?

Thanks in advance,

Rajeev
                               

Back to the top