Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to programatically get the location of plugin directory
How to programatically get the location of plugin directory [message #154899] Mon, 10 November 2003 09:52 Go to next message
Eclipse UserFriend
Originally posted by: jim.conallen.org

Is there an easy way to get a directory reference of the location of a
plugin directory? Basically I want to create a plugin that some associated
files that need to be accessed. I would like to place these files in a
subdirectory of my plugin directory, and then reference them in my code at
places.

Thanx for any help,

<jim/>
jim conallen
Re: How to programatically get the location of plugin directory [message #154910 is a reply to message #154899] Mon, 10 November 2003 10:26 Go to previous message
Eclipse UserFriend
Originally posted by: meshcheryakovsemen.hotmail.com

I use: "URL IPluginDescriptor.find(IPath path);"
which returns "file:" URL if plugin is installed in the local file system.

IMHO, mostly suggested "Platform.resolve(IPluginDescriptor.getInstallURL())"
looks not so obvious :)

PS. This is so called STFM-question :)

Best regards,
-- Sam
It's better to view source code than comments to it.

"jim conallen" <jim@conallen.org> wrote in message
news:boo8gj$r5v$1@eclipse.org...
> Is there an easy way to get a directory reference of the location of a
> plugin directory? Basically I want to create a plugin that some
associated
> files that need to be accessed. I would like to place these files in a
> subdirectory of my plugin directory, and then reference them in my code at
> places.
>
> Thanx for any help,
>
> <jim/>
> jim conallen
>
>
Previous Topic:Is there any real documentation for update manager?
Next Topic:Need help generating JAR file for normal Java project
Goto Forum:
  


Current Time: Sat May 10 16:00:43 EDT 2025

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

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

Back to the top