Interface IOptionFactory
-
- All Known Implementing Classes:
AbstractFormatterPreferencePage.OptionFactory
public interface IOptionFactory
Option factory that shall create options
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IOption<Boolean>
createBooleanOption(String preferenceKey, String presentation, org.eclipse.jface.preference.IPreferenceStore store)
Create newStoreBasedBooleanOption
that holds Boolean value and will be stored with the given preferenceKeyIOption<Integer>
createIntegerOption(String preferenceKey, String presentation, org.eclipse.jface.preference.IPreferenceStore store)
Create newcreateStoreBasedIntegerOption
that holds Integer value and will be stored with the given preferenceKeyIOption<String>
createMultiStringOption(String preferenceKey, String presentation, String[] options, String[] optionPresentations, org.eclipse.jface.preference.IPreferenceStore store)
Create newMultiStringOption
that holds String value and will be stored with the given preferenceKey represents chose-one option.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 editorsIOption<String>
createStringOption(String preferenceKey, String presentation, org.eclipse.jface.preference.IPreferenceStore store)
Create newStoreBasedStringOption
that holds String value and will be stored with the given preferenceKey
-
-
-
Method Detail
-
createMultiStringOption
IOption<String> createMultiStringOption(String preferenceKey, String presentation, String[] options, String[] optionPresentations, org.eclipse.jface.preference.IPreferenceStore store)
Create newMultiStringOption
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 benull
presentation
- The presentation text to set on associated label, cannot benull
options
- The options that can be chosen, cannot benull
optionPresentations
- The options localized presentation, cannot benull
store
- The store which is bound to this option. Any set/get will be adjusted with it, can benull
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 newcreateStoreBasedIntegerOption
that holds Integer value and will be stored with the given preferenceKey- Parameters:
preferenceKey
- The preference key that is associated to this option, cannot benull
presentation
- The localized presentation of this option, cannot benull
store
- The store that performs read/write of this option, can benull
- Returns:
- Representation of IntegerOption, cannot be
null
-
createStringOption
IOption<String> createStringOption(String preferenceKey, String presentation, org.eclipse.jface.preference.IPreferenceStore store)
Create newStoreBasedStringOption
that holds String value and will be stored with the given preferenceKey- Parameters:
preferenceKey
- The preference key that is associated to this option, cannot benull
presentation
- The localized presentation of this option, cannot benull
store
- The store that performs read/write of this option, can benull
- Returns:
- Representation of StringOption, cannot be
null
-
createBooleanOption
IOption<Boolean> createBooleanOption(String preferenceKey, String presentation, org.eclipse.jface.preference.IPreferenceStore store)
Create newStoreBasedBooleanOption
that holds Boolean value and will be stored with the given preferenceKey- Parameters:
preferenceKey
- The preference key that is associated to this option, cannot benull
presentation
- The localized presentation of this option, cannot benull
store
- The store that performs read/write of this option, can benull
- 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 benull
store
- The store associated with this preferences to perform write/read access, can benull
- Returns:
- Representation of
ShowWhitespaceCharactersOption
, cannot benull
-
-