Package com.e1c.g5.v8.dt.formatter
Class DelegateOptionProvider
java.lang.Object
com.e1c.g5.v8.dt.formatter.DelegateOptionProvider
- All Implemented Interfaces:
IOptionProvider
Delegates to
ServiceProvider to get actual IOptionProvider-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ServiceProviderserviceProvider to get necessary preferences -
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
-
Field Details
-
serviceProvider
serviceProvider to get necessary preferences
-
-
Constructor Details
-
DelegateOptionProvider
public DelegateOptionProvider()
-
-
Method Details
-
getBooleanPreference
Description copied from interface:IOptionProviderReads boolean preference with given key- Specified by:
getBooleanPreferencein interfaceIOptionProvider- Parameters:
preferenceKey- The key of the preference, cannot benull- Returns:
- The value of the preference, can be
null
-
getIntegerPreference
Description copied from interface:IOptionProviderReads integer preference with given key- Specified by:
getIntegerPreferencein interfaceIOptionProvider- Parameters:
preferenceKey- The key of the preference, cannot benull- Returns:
- The value of the preference, can be
null
-
getStringPreference
Description copied from interface:IOptionProviderReads string preference with given key- Specified by:
getStringPreferencein 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:IOptionProviderReads boolean preference with given key- Specified by:
getBooleanPreferencein interfaceIOptionProvider- Parameters:
preferenceKey- The key of the preference, cannot benullcontext- 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:IOptionProviderReads integer preference with given key- Specified by:
getIntegerPreferencein interfaceIOptionProvider- Parameters:
preferenceKey- The key of the preference, cannot benullcontext- 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:IOptionProviderReads string preference with given key- Specified by:
getStringPreferencein interfaceIOptionProvider- Parameters:
preferenceKey- The key of the preference, cannot benullcontext- The context to get preference from, can benull- Returns:
- The value of the preference, can be
null
-