Interface IPreferenceTabItemProvider
-
- All Superinterfaces:
IReformatable
- All Known Implementing Classes:
AbstractPreferenceTabItemProvider
,BslTabItemProvider
,DefaultUITabItemProvider
public interface IPreferenceTabItemProvider extends IReformatable
This interface represents TabItem that can collect options withaddOption(String, IOption)
and then build its UI representation withcreateContent(TabFolder, String)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addOption(String groupName, IOption<?> option)
Adds option with in the given group or to this TabItem if groupName field isnull
void
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.TabFolder tabFolder, String name)
Builds UI representation of this TabItem with given name in the given tabFoldervoid
setPreview(String previewText, IOptionProvider optionProvider)
Sets given previewText and previewFormater for this tab-
Methods inherited from interface com.e1c.g5.v8.dt.formatter.ui.preferences.page.builders.IReformatable
reformat
-
-
-
-
Method Detail
-
addOption
void addOption(String groupName, IOption<?> option)
Adds option with in the given group or to this TabItem if groupName field isnull
- Parameters:
groupName
- The name of the group to add the option, can benull
option
- The option to add to the given group in this TabItem, 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 previewText, IOptionProvider optionProvider)
Sets given previewText and previewFormater for this tab- Parameters:
previewText
- The text of preview(code example), cannot benull
optionProvider
- The option provider for formatter(formatter that formats previewText), can benull
-
createContent
void createContent(org.eclipse.swt.widgets.TabFolder tabFolder, String name)
Builds UI representation of this TabItem with given name in the given tabFolder- Parameters:
tabFolder
- The containing TabFodler of this TabItem, cannot benull
name
- The name of this TabItem, cannot benull
-
-