Class AbstractPreferencePageProvider

    • Method Detail

      • addMultiStringOption

        public void addMultiStringOption​(String tabName,
                                         String groupName,
                                         String preferenceKey,
                                         String presentation,
                                         String[] options,
                                         String[] optionPresentations,
                                         org.eclipse.jface.preference.IPreferenceStore store)
        Description copied from interface: IPreferencePageProvider
        Adds new manager based chose-one string option in the given tab with given group and given preference key
        Specified by:
        addMultiStringOption in interface IPreferencePageProvider
        Parameters:
        tabName - The name of the tab that holds this option, cannot be null
        groupName - The name of the group that hold this option, can be null
        preferenceKey - The preference key of the option, cannot be null
        presentation - The presentation text to set on associated label, cannot be null
        options - The options that can be chosen from the list, cannot be null
        optionPresentations - The localized options presentation, cannot be null
        store - The store which is bound to this option. Any set/get will be adjusted with it, can be null
      • addBooleanOption

        public void addBooleanOption​(String tabName,
                                     String groupName,
                                     String preferenceKey,
                                     String presentation,
                                     org.eclipse.jface.preference.IPreferenceStore store)
        Description copied from interface: IPreferencePageProvider
        Adds new store based boolean option in the given tab with given group and given preference key
        Specified by:
        addBooleanOption in interface IPreferencePageProvider
        Parameters:
        tabName - The name of the tab that holds this option, cannot be null
        groupName - The name of the group that hold this option, can be null
        preferenceKey - The preference key of the option, cannot be null
        presentation - The presentation text to set on associated label, cannot be null
        store - The store which is bound to this option. Any set/get will be adjusted with it, can be null
      • addStringOption

        public void addStringOption​(String tabName,
                                    String groupName,
                                    String preferenceKey,
                                    String presentation,
                                    org.eclipse.jface.preference.IPreferenceStore store)
        Description copied from interface: IPreferencePageProvider
        Adds new store based string option in the given tab with given group and given preference key
        Specified by:
        addStringOption in interface IPreferencePageProvider
        Parameters:
        tabName - The name of the tab that holds this option, cannot be null
        groupName - The name of the group that hold this option, can be null
        preferenceKey - The preference key of the option, cannot be null
        presentation - The presentation text to set on associated label, cannot be null
        store - The store which is bound to this option. Any set/get will be adjusted with it, can be null
      • addIntegerOption

        public void addIntegerOption​(String tabName,
                                     String groupName,
                                     String preferenceKey,
                                     String presentation,
                                     org.eclipse.jface.preference.IPreferenceStore store)
        Description copied from interface: IPreferencePageProvider
        Adds new store based Integer option in the given tab with given group and given preference key
        Specified by:
        addIntegerOption in interface IPreferencePageProvider
        Parameters:
        tabName - The name of the tab that holds this option, cannot be null
        groupName - The name of the group that hold this option, can be null
        preferenceKey - The preference key of the option, cannot be null
        presentation - The presentation text to set on associated label, cannot be null
      • compose

        public void compose​(org.eclipse.swt.widgets.Composite parent)
        Description copied from interface: IPreferencePageProvider
        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
        Specified by:
        compose in interface IPreferencePageProvider
        Parameters:
        parent - The composite parent on which UI shall be built on, cannot be null
      • setPreview

        public void setPreview​(String tabName,
                               String previewText)
        Description copied from interface: IPreferencePageProvider
        Sets given previewText and given previewFromatter for the tab with given tabName
        Specified by:
        setPreview in interface IPreferencePageProvider
        Parameters:
        tabName - The name of the tab to set preview preferences on, cannot be null
        previewText - The text of preview(code example to be formatted), can be null
      • enableShowWhitespaceCharactersOption

        public void enableShowWhitespaceCharactersOption​(String preferenceKey,
                                                         org.eclipse.jface.preference.IPreferenceStore store)
        Description copied from interface: IPreferencePageProvider
        Creates a specific option for each preview that lets user to turn on/off showing of whitespace characters
        Specified by:
        enableShowWhitespaceCharactersOption in interface IPreferencePageProvider
        Parameters:
        preferenceKey - The preference key of this option, cannot be null
        store - The related preference store, can be null