How to get the install directory of a plugin. [message #149278] |
Sat, 25 October 2003 12:59 |
Eclipse User |
|
|
|
Originally posted by: derisor.arcor.de
Greetings,
I am writing a plugin that needs various support files and my plugin needs to
know where to find these files. What I need is to be able to get the path of the
install directory of the plugin so I can append my path name. Anyone know how I
can do this?
-- Robert
|
|
|
Re: How to get the install directory of a plugin. [message #149287 is a reply to message #149278] |
Sat, 25 October 2003 13:22 |
Eclipse User |
|
|
|
Originally posted by: Eric.Jain.isb-sib.ch
> I am writing a plugin that needs various support files and my plugin
> needs to know where to find these files. What I need is to be able to
> get the path of the install directory of the plugin so I can append
> my path name. Anyone know how I can do this?
You could try
SamplePlugin
.getDefault()
.getDescriptor()
.getInstallURL();
--
Eric Jain
|
|
|
Re: How to get the install directory of a plugin. [message #149299 is a reply to message #149287] |
Sat, 25 October 2003 16:39 |
Eclipse User |
|
|
|
Originally posted by: derisor.arcor.de
That doesnt work. The path component of that URL is only the path relative to
the eclipse install. I have to have the absolute path of the plugin in order to
configure a subcomponent of the plugin.
-- Robert
"Eric Jain" <Eric.Jain@isb-sib.ch> wrote in message
news:bndtbp$gl8$1@eclipse.org...
> > I am writing a plugin that needs various support files and my plugin
> > needs to know where to find these files. What I need is to be able to
> > get the path of the install directory of the plugin so I can append
> > my path name. Anyone know how I can do this?
>
> You could try
>
> SamplePlugin
> .getDefault()
> .getDescriptor()
> .getInstallURL();
>
> --
> Eric Jain
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03458 seconds