Class DefaultUITabItemProvider

    • Constructor Detail

      • DefaultUITabItemProvider

        public DefaultUITabItemProvider()
    • Method Detail

      • addShowWhitespaceOption

        public void addShowWhitespaceOption​(IOption<Boolean> option)
        Description copied from interface: IPreferenceTabItemProvider
        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
      • createTabItem

        protected org.eclipse.swt.widgets.Composite createTabItem​(org.eclipse.swt.widgets.TabFolder tabFolder,
                                                                  String name,
                                                                  IOptionProvider optionProvider)
        Description copied from class: AbstractPreferenceTabItemProvider
        Creates TabItem with given name in given parent tabFolder
        Specified by:
        createTabItem in class AbstractPreferenceTabItemProvider
        Parameters:
        tabFolder - The parent TabFodler, cannot be null
        name - The name of the TabItem, cannot be null
        optionProvider - The optionProvider for preview editors, cannot benull
        Returns:
        The composite that represents created TabItem, cannot be null
      • createEditor

        protected abstract org.eclipse.swt.widgets.Control createEditor​(org.eclipse.swt.widgets.Composite composite,
                                                                        IOptionProvider optionProvider)
        Creates editor on given composite with given optionProvider to get options from. IReformatable.reformat() method shall reformat this editor
        Parameters:
        composite - The composite to create editor, cannot be null
        optionProvider - The provider of options to format preview editor, cannot be null
        Returns:
        The control of created editor, cannot be null