How to access a plugin's JARs [message #275648] |
Wed, 10 November 2004 15:07 |
Eclipse User |
|
|
|
Originally posted by: rgitzel.wifo3.uni-mannheim.de
Hi everybody,
this is a real newby question. I am currently working on a Lookup
service which searches through all JAR files associated with a plugin.
My big problem now is how to get the path to these JAR files. I know
they are specified in the plugin.xml but surely there must be a way to
access them programmatically from within the plugin. (Maybe through its
ClassLoader? But then, where do I get that one?)
Any help would be greatly appreciated.
Kind Regards,
Ralf Gitzel
|
|
|
Re: How to access a plugin's JARs [message #275652 is a reply to message #275648] |
Wed, 10 November 2004 15:40 |
Eclipse User |
|
|
|
Originally posted by: Chris_Laffra.ca.ibm.com
Platform.getPluginRegistry()
and
IPluginDescriptor.getRuntimeLibraries()[n].getPath();
will get you going.
This is deprecated API, but there is no replacement yet, as far as I know.
Chris
"Ralf Gitzel" <rgitzel@wifo3.uni-mannheim.de> wrote in message
news:cmtar8$mn6$1@eclipse.org...
> Hi everybody,
>
> this is a real newby question. I am currently working on a Lookup
> service which searches through all JAR files associated with a plugin.
> My big problem now is how to get the path to these JAR files. I know
> they are specified in the plugin.xml but surely there must be a way to
> access them programmatically from within the plugin. (Maybe through its
> ClassLoader? But then, where do I get that one?)
>
> Any help would be greatly appreciated.
>
> Kind Regards,
> Ralf Gitzel
|
|
|
Re: How to access a plugin's JARs [message #275760 is a reply to message #275652] |
Fri, 12 November 2004 07:53 |
Eclipse User |
|
|
|
Originally posted by: rgitzel.wifo3.uni-mannheim.de
Chris Laffra wrote:
> Platform.getPluginRegistry()
> and
> IPluginDescriptor.getRuntimeLibraries()[n].getPath();
>
> will get you going.
> This is deprecated API, but there is no replacement yet, as far as I know.
Thanks, that got me a bit farther.
Cheers,
Ralf
|
|
|
Powered by
FUDForum. Page generated in 0.02925 seconds