Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow add a resource to a plugin's classpath dynamically
https://www.eclipse.org/forums/index.php/mv/msg/441461/990526/#msg_990526
I have a scenario, where a I need to add a file to my plugins' classpath dynamically. Here are more details:
I have a plugin which when installed allows user to right click on an .xmi file and generate another file in the same directory as .xmi file. Now my plugin has to load this generated file using PDE's default resource manager(which loads resources from its classpath).
So, I have to update this classpath with the directory in which user generates this file.
I have already looked through a lot of documentation but couldn't find any feasible solution to this problem.
Could you please help me to resolve this problem.
Thanks in advance.
]]>Bhanu Pratap2012-12-12T22:03:49-00:00Re: How add a resource to a plugin's classpath dynamically
https://www.eclipse.org/forums/index.php/mv/msg/441461/990677/#msg_990677
There are other ways of dynamically changing the classpath, but I am not familiar with the details. Here is a bug that we are considering to support equinox adapter hooks: https://bugs.eclipse.org/bugs/show_bug.cgi?id=363733]]>Curtis Windatt2012-12-13T18:06:01-00:00