Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to get the install directory of a plugin.
How to get the install directory of a plugin. [message #149278] Sat, 25 October 2003 12:59 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
>
>
Re: How to get the install directory of a plugin. [message #149850 is a reply to message #149299] Mon, 27 October 2003 19:29 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Use plugin.find(IPath) where the path is relative to your plugin. It
will return a resolved URL.

Robert Simmons wrote:


--
Thanks, Rich Kulp

Previous Topic:cvs client docs
Next Topic:Getting LOG generated by Plugin
Goto Forum:
  


Current Time: Sat Jul 27 18:29:25 GMT 2024

Powered by FUDForum. Page generated in 0.05549 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top