| Access to a folder in my plugin [message #296357] |
Wed, 21 December 2005 02:51  |
Eclipse User |
|
|
|
Originally posted by: prooteus_NOSPAM.gmx.net
Hi,
in my Eclipse plugin, I have a folger images where I would like to
store images that I generate programmatically.
I thought using
String fileName = "images\\1.png";
URL url = ComparisonPlugin.getDefault().find(new Path(fileName));
String path = url.getFile();
would work, but url is always null.
How do I get the path to this folder?
Thanks,
Stefan
|
|
|
|
|
| Re: Access to a folder in my plugin [message #296846 is a reply to message #296785] |
Tue, 03 January 2006 12:19  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
In fact, there is an area specifically reserved to create plugin
specific files.
It is Platform.getStateLocation(bundle)
This returns an IPath to a local directory in your workspace where your
plugin can store plugin wide files. (I.e. any files that are for the
plugin, not ones for specific projects).
Paul Webster wrote:
> Don't forget that your plugin folder is potentially read-only when it is
> deployed ... either because it's a single jar file, or depending on the
> setup it might have been installed read-only by the administrator.
>
> There are other levels of configuration areas (user, workspace, etc)
> that you can store generated images in.
>
> Later,
> PW
>
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03115 seconds