Class PreferenceMetadata<V>
java.lang.Object
org.eclipse.core.runtime.preferences.PreferenceMetadata<V>
- Type Parameters:
V
- the value type for the preference
The preference metadata provides the information needed to configure
everything about the preference except the preference value itself.
- Since:
- 3.8
- See Also:
-
Constructor Summary
ConstructorDescriptionCreated an instance ofPreferenceMetadata
using name as descriptionPreferenceMetadata
(Class<V> clazz, String identifier, V defaultValue, String name, String description) Created an instance ofPreferenceMetadata
of all the the given parameters -
Method Summary
Modifier and TypeMethodDescriptionThe default value for the preference.Widely describes the preference purpose, intended to be used in UI.The preference identifier to use as a key to access the preference value.name()
Briefly describes the preference purpose, intended to be used in UI.The type of preference value needed to perform type checks.
-
Constructor Details
-
PreferenceMetadata
Created an instance ofPreferenceMetadata
using name as description- Parameters:
clazz
- the value type of the preference, must not benull
identifier
- the identifier of the preference, must not benull
defaultValue
- the default value of the preference, must not benull
name
- the name of the preference, must not benull
- See Also:
-
PreferenceMetadata
public PreferenceMetadata(Class<V> clazz, String identifier, V defaultValue, String name, String description) Created an instance ofPreferenceMetadata
of all the the given parameters- Parameters:
clazz
- the value type of the preference, must not benull
identifier
- the identifier of the preference, must not benull
defaultValue
- the default value of the preference, must not benull
name
- the name of the preference, must not benull
description
- the description of the preference, must not benull
- See Also:
-
-
Method Details
-
identifer
The preference identifier to use as a key to access the preference value. Must not benull
.- Returns:
- the identifier
-
defaultValue
The default value for the preference. Must not benull
.- Returns:
- the default value
-
name
Briefly describes the preference purpose, intended to be used in UI. Must not benull
and should be localized. Should not be blank.- Returns:
- the name
-
description
Widely describes the preference purpose, intended to be used in UI. Must not benull
and should be localized. May be blank.- Returns:
- the description
-
valueClass
The type of preference value needed to perform type checks. Must not benull
.- Returns:
- the value class
-