Class ManagerBasedOptionProvider

java.lang.Object
com.e1c.g5.v8.dt.formatter.preferences.manager.ManagerBasedOptionProvider
All Implemented Interfaces:
IOptionProvider

public class ManagerBasedOptionProvider extends Object implements IOptionProvider
The class represents IOptionProvider that is based on IPreferenceManager
  • Constructor Details

    • ManagerBasedOptionProvider

      public ManagerBasedOptionProvider()
  • Method Details

    • 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
    • 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
    • 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
    • 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
    • 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
    • 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