Interface IPreferenceTabFolderProvider
-
- All Known Implementing Classes:
AbstractPreferenceTabFolderProvider
,BslTabFolderProvider
,DefaultUITabFolderProvider
public interface IPreferenceTabFolderProvider
This class represents a TabFolder, that can collect options and the build their UI representation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addOption(String tabName, String groupName, IOption<?> option)
Adds option to the TabItem with given name and the Group with given namevoid
addShowWhitespaceOption(IOption<Boolean> option)
Adds specific option that is used to turn on/off showing of whitespace characters in preview editors.void
createContent(org.eclipse.swt.widgets.Composite parent)
Builds UI representation of this TabFoldervoid
setPreview(String tabName, String previewText, IOptionProvider optionProvider)
Sets given previewText and given previewFromatter for the tab with given tabName
-
-
-
Method Detail
-
addOption
void addOption(String tabName, String groupName, IOption<?> option)
Adds option to the TabItem with given name and the Group with given name- Parameters:
tabName
- The name of the TabItem to add the option, cannot benull
groupName
- The name of the Group held by TabItem to add the option, can benull
option
- The option to add, cannot benull
-
addShowWhitespaceOption
void addShowWhitespaceOption(IOption<Boolean> option)
Adds specific option that is used to turn on/off showing of whitespace characters in preview editors. The last option that is called with this will be applied- Parameters:
option
- The option that is used to read and write actual values
-
setPreview
void setPreview(String tabName, String previewText, IOptionProvider optionProvider)
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
optionProvider
- The option provider for formatter(that shall format previewText with given preferences), cannot benull
-
createContent
void createContent(org.eclipse.swt.widgets.Composite parent)
Builds UI representation of this TabFolder- Parameters:
parent
- The composite parent of this TabFolder, cannot benull
-
-