Interface IOptionFactory

    • Method Detail

      • createMultiStringOption

        IOption<String> createMultiStringOption​(String preferenceKey,
                                                String presentation,
                                                String[] options,
                                                String[] optionPresentations,
                                                org.eclipse.jface.preference.IPreferenceStore store)
        Create new MultiStringOption that holds String value and will be stored with the given preferenceKey represents chose-one option.
        Parameters:
        preferenceKey - The preference key that is associated to this option, cannot be null
        presentation - The presentation text to set on associated label, cannot be null
        options - The options that can be chosen, cannot be null
        optionPresentations - The options localized presentation, cannot be null
        store - The store which is bound to this option. Any set/get will be adjusted with it, can be null options associated with optionPresenations by array's index.
        Returns:
        Representation of MultiStringOption, cannot be null
      • createIntegerOption

        IOption<Integer> createIntegerOption​(String preferenceKey,
                                             String presentation,
                                             org.eclipse.jface.preference.IPreferenceStore store)
        Create new createStoreBasedIntegerOption that holds Integer value and will be stored with the given preferenceKey
        Parameters:
        preferenceKey - The preference key that is associated to this option, cannot be null
        presentation - The localized presentation of this option, cannot be null
        store - The store that performs read/write of this option, can be null
        Returns:
        Representation of IntegerOption, cannot be null
      • createStringOption

        IOption<String> createStringOption​(String preferenceKey,
                                           String presentation,
                                           org.eclipse.jface.preference.IPreferenceStore store)
        Create new StoreBasedStringOption that holds String value and will be stored with the given preferenceKey
        Parameters:
        preferenceKey - The preference key that is associated to this option, cannot be null
        presentation - The localized presentation of this option, cannot be null
        store - The store that performs read/write of this option, can be null
        Returns:
        Representation of StringOption, cannot be null
      • createBooleanOption

        IOption<Boolean> createBooleanOption​(String preferenceKey,
                                             String presentation,
                                             org.eclipse.jface.preference.IPreferenceStore store)
        Create new StoreBasedBooleanOption that holds Boolean value and will be stored with the given preferenceKey
        Parameters:
        preferenceKey - The preference key that is associated to this option, cannot be null
        presentation - The localized presentation of this option, cannot be null
        store - The store that performs read/write of this option, can be null
        Returns:
        Representation of BooleanOption, cannot be null
      • createShowWhitespaceCharactersOption

        IOption<Boolean> createShowWhitespaceCharactersOption​(String preferenceKey,
                                                              org.eclipse.jface.preference.IPreferenceStore store)
        Creates specific option that is used to turn on/off showing of whitespace characters in preview editors
        Parameters:
        preferenceKey - The key associated with showing whitespace characters, cannot be null
        store - The store associated with this preferences to perform write/read access, can be null
        Returns:
        Representation of ShowWhitespaceCharactersOption, cannot be null