Class DelegateOptionProvider

java.lang.Object
com.e1c.g5.v8.dt.formatter.DelegateOptionProvider
All Implemented Interfaces:
IOptionProvider

public class DelegateOptionProvider extends Object implements IOptionProvider
Delegates to ServiceProvider to get actual IOptionProvider
  • Field Details

    • serviceProvider

      @Inject protected ServiceProvider serviceProvider
      serviceProvider to get necessary preferences
  • Constructor Details

    • DelegateOptionProvider

      public DelegateOptionProvider()
  • Method Details

    • getBooleanPreference

      public Boolean getBooleanPreference(String preferenceKey)
      Description copied from interface: IOptionProvider
      Reads boolean preference with given key
      Specified by:
      getBooleanPreference in interface IOptionProvider
      Parameters:
      preferenceKey - The key of the preference, cannot be null
      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 interface IOptionProvider
      Parameters:
      preferenceKey - The key of the preference, cannot be null
      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 interface IOptionProvider
      Parameters:
      preferenceKey - The key of the preference, cannot be null
      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 interface IOptionProvider
      Parameters:
      preferenceKey - The key of the preference, cannot be null
      context - The context to get preference from, can be null
      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 interface IOptionProvider
      Parameters:
      preferenceKey - The key of the preference, cannot be null
      context - The context to get preference from, can be null
      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 interface IOptionProvider
      Parameters:
      preferenceKey - The key of the preference, cannot be null
      context - The context to get preference from, can be null
      Returns:
      The value of the preference, can be null