Interface IPreferencePageProvider
-
- All Known Implementing Classes:
AbstractPreferencePageProvider
,BslPreferencePageProvider
public interface IPreferencePageProvider
Builder that adds options and then creates their UI representation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addBooleanOption(String tabName, String groupName, String preferenceKey, String presentation, org.eclipse.jface.preference.IPreferenceStore store)
Adds new store based boolean option in the given tab with given group and given preference keyvoid
addIntegerOption(String tabName, String groupName, String preferenceKey, String presentation, org.eclipse.jface.preference.IPreferenceStore store)
Adds new store based Integer option in the given tab with given group and given preference keyvoid
addMultiStringOption(String tabName, String groupName, String preferenceKey, String presentation, String[] options, String[] optionPresentations, org.eclipse.jface.preference.IPreferenceStore store)
Adds new manager based chose-one string option in the given tab with given group and given preference keyvoid
addStringOption(String tabName, String groupName, String preferenceKey, String presentation, org.eclipse.jface.preference.IPreferenceStore store)
Adds new store based string option in the given tab with given group and given preference keyvoid
compose(org.eclipse.swt.widgets.Composite parent)
Creates UI representation of options collected with#addBooleanOption(String, String, String, String, IPreferenceStore, boolean, boolean)
,#addIntegerOption(String, String, String, String, IPreferenceStore, boolean, boolean)
#addMultiStringOption(String, String, String, String, String[], String[], IPreferenceStore, boolean, boolean)
and#addStringOption(String, String, String, String, IPreferenceStore, boolean, boolean)
methodsvoid
enableShowWhitespaceCharactersOption(String preferenceKey, org.eclipse.jface.preference.IPreferenceStore store)
Creates a specific option for each preview that lets user to turn on/off showing of whitespace charactersvoid
setOptionProvider(String tabName, IOptionProvider optionProvider)
Sets option provider for the preview in the given tabvoid
setPreview(String tabName, String previewText)
Sets given previewText and given previewFromatter for the tab with given tabName
-
-
-
Method Detail
-
addMultiStringOption
void addMultiStringOption(String tabName, String groupName, String preferenceKey, String presentation, String[] options, String[] optionPresentations, org.eclipse.jface.preference.IPreferenceStore store)
Adds new manager based chose-one string option in the given tab with given group and given preference key- Parameters:
tabName
- The name of the tab that holds this option, cannot benull
groupName
- The name of the group that hold this option, can benull
preferenceKey
- The preference key of the option, cannot benull
presentation
- The presentation text to set on associated label, cannot benull
options
- The options that can be chosen from the list, cannot benull
optionPresentations
- The localized options presentation, cannot benull
store
- The store which is bound to this option. Any set/get will be adjusted with it, can benull
-
addBooleanOption
void addBooleanOption(String tabName, String groupName, String preferenceKey, String presentation, org.eclipse.jface.preference.IPreferenceStore store)
Adds new store based boolean option in the given tab with given group and given preference key- Parameters:
tabName
- The name of the tab that holds this option, cannot benull
groupName
- The name of the group that hold this option, can benull
preferenceKey
- The preference key of the option, cannot benull
presentation
- The presentation text to set on associated label, cannot benull
store
- The store which is bound to this option. Any set/get will be adjusted with it, can benull
-
addStringOption
void addStringOption(String tabName, String groupName, String preferenceKey, String presentation, org.eclipse.jface.preference.IPreferenceStore store)
Adds new store based string option in the given tab with given group and given preference key- Parameters:
tabName
- The name of the tab that holds this option, cannot benull
groupName
- The name of the group that hold this option, can benull
preferenceKey
- The preference key of the option, cannot benull
presentation
- The presentation text to set on associated label, cannot benull
store
- The store which is bound to this option. Any set/get will be adjusted with it, can benull
-
addIntegerOption
void addIntegerOption(String tabName, String groupName, String preferenceKey, String presentation, org.eclipse.jface.preference.IPreferenceStore store)
Adds new store based Integer option in the given tab with given group and given preference key- Parameters:
tabName
- The name of the tab that holds this option, cannot benull
groupName
- The name of the group that hold this option, can benull
preferenceKey
- The preference key of the option, cannot benull
presentation
- The presentation text to set on associated label, cannot benull
The
- store which is bound to this option. Any set/get will be adjusted with it, can benull
-
setPreview
void setPreview(String tabName, String previewText)
Sets given previewText and given previewFromatter for the tab with given tabName- Parameters:
tabName
- The name of the tab to set preview preferences on, cannot benull
previewText
- The text of preview(code example to be formatted), can benull
-
enableShowWhitespaceCharactersOption
void enableShowWhitespaceCharactersOption(String preferenceKey, org.eclipse.jface.preference.IPreferenceStore store)
Creates a specific option for each preview that lets user to turn on/off showing of whitespace characters- Parameters:
preferenceKey
- The preference key of this option, cannot benull
store
- The related preference store, can benull
-
compose
void compose(org.eclipse.swt.widgets.Composite parent)
Creates UI representation of options collected with#addBooleanOption(String, String, String, String, IPreferenceStore, boolean, boolean)
,#addIntegerOption(String, String, String, String, IPreferenceStore, boolean, boolean)
#addMultiStringOption(String, String, String, String, String[], String[], IPreferenceStore, boolean, boolean)
and#addStringOption(String, String, String, String, IPreferenceStore, boolean, boolean)
methods- Parameters:
parent
- The composite parent on which UI shall be built on, cannot benull
-
setOptionProvider
void setOptionProvider(String tabName, IOptionProvider optionProvider)
Sets option provider for the preview in the given tab- Parameters:
tabName
- The tab name to set option provider tooptionProvider
- The option provider that is set to the given tab
-
-