Interface IOptionProvider
- All Known Implementing Classes:
AbstractFormatterPreferencePage.OptionProvider
,DelegateOptionProvider
,ManagerBasedOptionProvider
public interface IOptionProvider
This class provides Options for certain formatters.
-
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
-
Method Details
-
getStringPreference
Reads string preference with given key- Parameters:
preferenceKey
- The key of the preference, cannot benull
- Returns:
- The value of the preference, can be
null
-
getIntegerPreference
Reads integer preference with given key- Parameters:
preferenceKey
- The key of the preference, cannot benull
- Returns:
- The value of the preference, can be
null
-
getBooleanPreference
Reads boolean preference with given key- Parameters:
preferenceKey
- The key of the preference, cannot benull
- Returns:
- The value of the preference, can be
null
-
getStringPreference
String getStringPreference(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context) Reads string preference with given key- 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
Integer getIntegerPreference(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context) Reads integer preference with given key- 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
Boolean getBooleanPreference(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context) Reads boolean preference with given key- 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
-