Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Writing to the Preferences of another Plugin
Writing to the Preferences of another Plugin [message #284247] Wed, 20 April 2005 00:55 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:About Editor,why don't provide drag and drop ability for text blocks?
Next Topic:Eclipse User Interface Guidelines question
Goto Forum:
  


Current Time: Mon Jul 21 10:22:33 EDT 2025

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

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

Back to the top