Class DefaultPaletteViewerPreferences

java.lang.Object
org.eclipse.gef.ui.palette.DefaultPaletteViewerPreferences
All Implemented Interfaces:
PaletteViewerPreferences

public class DefaultPaletteViewerPreferences extends Object implements PaletteViewerPreferences
This is the default implementation for PaletteViewerPreferences. It uses a single IPreferenceStore to load and save the palette viewer settings.

It is recommended that the default constructor be used (which will use the preference store in the GEF plugin) as that will cause the preferences to be shared across different types of editors. If the client does not wish to share one of the existing preferences for their editor (say the auto-collapse setting), they will have to sub-class this class and override the necessary methods (in this case, getAutoCollapseSetting() and setAutoCollapseSetting(int)) and save that preference in some other preference store. Sub-classes can add newer preferences to the store by using getPreferenceStore().