Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Finding the Plugins directory
Finding the Plugins directory [message #17161] Mon, 18 August 2008 23:37 Go to next message
Eclipse UserFriend
Originally posted by: richardepsilonhughes.gmail.com

Is there a straightforward way to find the plugins directory as a File
object from a plugin, so as to directly alter it's contents?
Re: Finding the Plugins directory [message #17273 is a reply to message #17161] Tue, 19 August 2008 13:17 Go to previous message
Eclipse UserFriend
Are you trying to get the plugins directory or your bundle?

There is FileLocator.getBundleFile() from org.eclipse.core.runtime.
However, there is no real restriction that says your bundle will be in
the main plugins directory.

There is also Platform.getInstallArea() which generally returns the
eclipse folder.

-Andrew

Richard Hughes wrote:
> Is there a straightforward way to find the plugins directory as a File
> object from a plugin, so as to directly alter it's contents?
>
Re: Finding the Plugins directory [message #577078 is a reply to message #17161] Tue, 19 August 2008 13:17 Go to previous message
Eclipse UserFriend
Are you trying to get the plugins directory or your bundle?

There is FileLocator.getBundleFile() from org.eclipse.core.runtime.
However, there is no real restriction that says your bundle will be in
the main plugins directory.

There is also Platform.getInstallArea() which generally returns the
eclipse folder.

-Andrew

Richard Hughes wrote:
> Is there a straightforward way to find the plugins directory as a File
> object from a plugin, so as to directly alter it's contents?
>
Previous Topic:Project Explorer view does not show loaded project
Next Topic:close editor when delete occurs
Goto Forum:
  


Current Time: Thu May 08 19:25:12 EDT 2025

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

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

Back to the top