thank you for your tutorial about the eclipse prefereces.
I have found a little bug in your code. In paragraph 3.2 you are
using:
setPreferenceStore(Activator.getDefault().getPreferenceStore());
Activator.getDefault().getPreferenceStore() is marked as deprecated.
The new method to get the preferenc store is:
setPreferenceStore(PlatformUI.getPreferenceStore());
have a nice day
Michael Lindner
thanks but I don't see .getPreferenceStore() marked as deprecated.
Javadoc attached below.
Where do you see the method deprecated?
Best regards, Lars
--------
/**
* Returns the preference store for this UI plug-in.
* This preference store is used to hold persistent settings for
this plug-in in
* the context of a workbench. Some of these settings will be user
controlled,
* whereas others may be internal setting that are never exposed
to the user.
* <p>
* If an error occurs reading the preference store, an empty
preference store is
* quietly created, initialized with defaults, and returned.
* </p>
* <p>
* <strong>NOTE:</strong> As of Eclipse 3.1 this method is
* no longer referring to the core runtime compatibility layer and so
* plug-ins relying on Plugin#initializeDefaultPreferences
* will have to access the compatibility layer themselves.
* </p>
*
* @return the preference store
*/
2010/1/19 bountykiller <michael...@stud.fh-regensburg.de>:
> --
> You received this message because you are subscribed to the Google Groups "vogella" group.
> To post to this group, send email to vog...@googlegroups.com.
> To unsubscribe from this group, send email to vogella+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/vogella?hl=en.
>
>
>
>
--
Lars
http://www.vogella.de - Tutorials about Java, Eclipse and Web programming
http://www.twitter.com/vogella - Lars on Twitter