Writing to the Preferences of another Plugin [message #284247] |
Wed, 20 April 2005 00:55  |
Eclipse User |
|
|
|
Originally posted by: nicole_kidding.yahoo.com
Hi,
Is it possible to write to the preferences of another plugin, without
using the PreferenceDialog? If so,what is the proper API to use to do so?
Appreciate any advice. Thanks.
Regards,
Nicole
|
|
|
Re: Writing to the Preferences of another Plugin [message #284293 is a reply to message #284247] |
Wed, 20 April 2005 11:07  |
Eclipse User |
|
|
|
Originally posted by: chaves.inf.no.ufsc.spam.br
Yes it is possible, but only recommended if the preference key is
provided as API by the plug-in in question (otherwise it is internal).
Snippet:
Plugin otherPlugin = ...
Preferences prefs = otherPlugin.getPluginPreferences();
prefs.setValue(otherPlugin.PREF_FOO,"bar");
otherPlugin.savePluginPreferences();
Nicole wrote:
> Hi,
>
> Is it possible to write to the preferences of another plugin, without
> using the PreferenceDialog? If so,what is the proper API to use to do
> so? Appreciate any advice. Thanks.
>
> Regards,
> Nicole
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.26805 seconds