[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Problems with getInstallURL()

The use of the "eclipse" scheme is not documented as API. You should always access
files in the plugin directory by obtaining the plugin directory "base" URL and then
creating a URL for the actual file access relative to this.

IPluginDescriptor pd = ... ;
URL base = pd.getInstallURL();
URL myfile = new URL(base,"myfile.txt");
InputStream is = myfile.openStream();
...