Package org.eclipse.ui.internal
Class UIPreferenceInitializer
java.lang.Object
org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
org.eclipse.ui.internal.UIPreferenceInitializer
Implementation of the UI plugin's preference extension's customization
element. This is needed in order to force the UI plugin's preferences to be
initialized properly when running without
org.eclipse.core.runtime.compatibility. For more details, see bug 58975 - New
preference mechanism does not properly initialize defaults.
- Since:
- 3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is called by the preference initializer to initialize default preference values.
-
Constructor Details
-
UIPreferenceInitializer
public UIPreferenceInitializer()
-
-
Method Details
-
initializeDefaultPreferences
public void initializeDefaultPreferences()Description copied from class:AbstractPreferenceInitializer
This method is called by the preference initializer to initialize default preference values. Clients should get the correct node for their bundle and then set the default values on it. For example:public void initializeDefaultPreferences() { Preferences node = DefaultScope.INSTANCE.getNode("my.bundle.id"); node.put(key, value); }
Note: Clients should only set default preference values for their own bundle.
Note: Clients should not call this method. It will be called automatically by the preference initializer when the appropriate default preference node is accessed.
- Specified by:
initializeDefaultPreferences
in classAbstractPreferenceInitializer
-