Class ManagerBasedOptionProvider
java.lang.Object
com.e1c.g5.v8.dt.formatter.preferences.manager.ManagerBasedOptionProvider
- All Implemented Interfaces:
IOptionProvider
The class represents
IOptionProvider
that is based on IPreferenceManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBooleanPreference
(String preferenceKey) Reads boolean preference with given keygetBooleanPreference
(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context) Reads boolean preference with given keygetIntegerPreference
(String preferenceKey) Reads integer preference with given keygetIntegerPreference
(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context) Reads integer preference with given keygetStringPreference
(String preferenceKey) Reads string preference with given keygetStringPreference
(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context) Reads string preference with given key
-
Constructor Details
-
ManagerBasedOptionProvider
public ManagerBasedOptionProvider()
-
-
Method Details
-
getStringPreference
Description copied from interface:IOptionProvider
Reads string preference with given key- Specified by:
getStringPreference
in interfaceIOptionProvider
- Parameters:
preferenceKey
- The key of the preference, cannot benull
- Returns:
- The value of the preference, can be
null
-
getIntegerPreference
Description copied from interface:IOptionProvider
Reads integer preference with given key- Specified by:
getIntegerPreference
in interfaceIOptionProvider
- Parameters:
preferenceKey
- The key of the preference, cannot benull
- Returns:
- The value of the preference, can be
null
-
getBooleanPreference
Description copied from interface:IOptionProvider
Reads boolean preference with given key- Specified by:
getBooleanPreference
in interfaceIOptionProvider
- Parameters:
preferenceKey
- The key of the preference, cannot benull
- Returns:
- The value of the preference, can be
null
-
getStringPreference
public String getStringPreference(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context) Description copied from interface:IOptionProvider
Reads string preference with given key- Specified by:
getStringPreference
in interfaceIOptionProvider
- Parameters:
preferenceKey
- The key of the preference, cannot benull
context
- The context to get preference from, can benull
- Returns:
- The value of the preference, can be
null
-
getIntegerPreference
public Integer getIntegerPreference(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context) Description copied from interface:IOptionProvider
Reads integer preference with given key- Specified by:
getIntegerPreference
in interfaceIOptionProvider
- Parameters:
preferenceKey
- The key of the preference, cannot benull
context
- The context to get preference from, can benull
- Returns:
- The value of the preference, can be
null
-
getBooleanPreference
public Boolean getBooleanPreference(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context) Description copied from interface:IOptionProvider
Reads boolean preference with given key- Specified by:
getBooleanPreference
in interfaceIOptionProvider
- Parameters:
preferenceKey
- The key of the preference, cannot benull
context
- The context to get preference from, can benull
- Returns:
- The value of the preference, can be
null
-