Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » PlatformUI.getPreferenceStore() versus DefaultScope?
PlatformUI.getPreferenceStore() versus DefaultScope? [message #460012] Mon, 11 December 2006 11:24
Eclipse UserFriend
R3.2.1, WinXP

Some while back, people (including me) were worried about the use of PlatformUI.getPreferenceStore()
in an RCP app, because any non-default values were not getting saved; the non-saving issue was
solved: https://bugs.eclipse.org/bugs/show_bug.cgi?id=86750 (as of 3.1).

However, reading some of the docco, then and recently, suggests to me that there might be reasons to
avoid PlatformUI.getPreferenceStore() and instead use DefaultScope; for example,
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/api/org/eclipse/core/runtime/pref erences/package-summary.html


So -- when does one want to use PlatformUI.getPreferenceStore() and when the DefaultScope system?
(And if the latter is to be preferred, is there an example somewhere? The docco that I have seen
does not quite make it clear *how* to use the DefaultScope and associated classes, etc.)

thanks,
Paul
Previous Topic:RCP 3.2.1 windowMenu has no contents
Next Topic:Unhandled event loop exception when trying to use a singleton
Goto Forum:
  


Current Time: Sat Mar 15 01:46:26 EDT 2025

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

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

Back to the top