public abstract class AbstractPreferenceInitializer extends Object
org.eclipse.equinox.preferences.preferences
or the org.eclipse.core.runtime.preferences
extension point are able to specify a class within an initializer
element.Constructor and Description |
---|
AbstractPreferenceInitializer()
Default constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
initializeDefaultPreferences()
This method is called by the preference initializer to initialize default
preference values.
|
public AbstractPreferenceInitializer()
public abstract void initializeDefaultPreferences()
public void initializeDefaultPreferences() { Preferences node = new DefaultScope().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.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.