|
|
Re: How to set and get a configuration file for a eclipse plugin [message #332222 is a reply to message #332217] |
Sun, 12 October 2008 14:46 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Hao schrieb:
> I am developing a eclipse plug-in and have a configuration file which
> contains the configuration information for the plug-in. These
> information are not neccessary to be exposed to the plug-in user. So
> these information are not preference. I would like to put the
> configuration file within the plug-in such as the root folder of the
> plug-in jar or the .metadata area of the plug-in. I am not sure which
> way is a better practice and how could I retrieve the configuration file
> when plug-in is activated.
>
> Highly appreciated for any suggestion!
>
> hao
>
Hi Hao,
for delivering the initial plug-in configuration, i would prefer to put
the properties file into the plug-in root directory. Your activator may
access the ressource via getBundle().getResource("props_file_name").
If you want to provide the ability of load/save an plug-in internal
state, then use the suggestion of Walter.
Holger
|
|
|
|
Powered by
FUDForum. Page generated in 0.04857 seconds