Plugin Design - Accessing resources outside your plugin prameela - Jan 08, 2008 - 02:36 AM Post subject: Accessing resources outside your plugin
Hi,
Has anyone ever tried using some resources outside your plug-in?
The plug-in jar is installed in the ECLIPSE/plugin directory.
If i have another folder within the same directory , what is the best way to get the path to the file(s) stored in that folder.
Any pointers/examples would be of great help,
/Prameela
bhavya - May 05, 2008 - 06:18 AM Post subject: RE: Accessing resources outside your plugin
I had the same issue..
in your Do Finish method add this piece of code
IClasspathEntry[] rawClassPath = javaProject.getRawClasspath();
List classPath = new ArrayList(Arrays.asList(rawClassPath));
classPath.add(JavaRuntime.getDefaultJREContainerEntry());