| [news.eclipse.pde] Re: how to access a file in Plugin at runtime |
ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(filepath)) can do what you seek, with filepath being a String relative to the workspace root (i.e. of the form '/' + pluginName + '/' + path).
An other option would be to use Platform.getBundle(pluginID).getEntry(filepath) with filepath being a path relative to the plugin root.
best regards! Jinhui