Package com.e1c.g5.v8.dt.formatter
Class DelegateOptionProvider
- java.lang.Object
-
- com.e1c.g5.v8.dt.formatter.DelegateOptionProvider
-
- All Implemented Interfaces:
IOptionProvider
public class DelegateOptionProvider extends Object implements IOptionProvider
Delegates toServiceProvider
to get actualIOptionProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceProvider
serviceProvider
serviceProvider to get necessary preferences
-
Constructor Summary
Constructors Constructor Description DelegateOptionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getBooleanPreference(String preferenceKey)
Reads boolean preference with given keyBoolean
getBooleanPreference(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context)
Reads boolean preference with given keyInteger
getIntegerPreference(String preferenceKey)
Reads integer preference with given keyInteger
getIntegerPreference(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context)
Reads integer preference with given keyString
getStringPreference(String preferenceKey)
Reads string preference with given keyString
getStringPreference(String preferenceKey, org.eclipse.core.runtime.preferences.IScopeContext context)
Reads string preference with given key
-
-
-
Field Detail
-
serviceProvider
@Inject protected ServiceProvider serviceProvider
serviceProvider to get necessary preferences
-
-
Method Detail
-
getBooleanPreference
public Boolean getBooleanPreference(String preferenceKey)
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
-
getIntegerPreference
public Integer getIntegerPreference(String preferenceKey)
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
-
getStringPreference
public String getStringPreference(String preferenceKey)
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
-
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
-
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
-
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
-
-