Class AbstractEventHandlersStyledLabelProvider

    • Constructor Detail

      • AbstractEventHandlersStyledLabelProvider

        public AbstractEventHandlersStyledLabelProvider​(StructuredViewer viewer)
        Constructor.
        Parameters:
        viewer - - parent viewer. Can't be null.
    • Method Detail

      • getMatchColor

        protected org.eclipse.swt.graphics.Color getMatchColor()
        Get pattern match color. Used to highlight text.
        Returns:
        pattern match color. Can't return null.
      • getMatchStyler

        protected StyledString.Styler getMatchStyler()
        Returns text styler. Highlites text color into match color.
        Returns:
        text styler Can't return null.
      • getViewer

        protected StructuredViewer getViewer()
        Returns parent viewer.
        Returns:
        parent viewer. Can't return null.
      • getSearchFilter

        protected SearchFilterWithHistory getSearchFilter()
        Returns search filter of parent viewer.
        Returns:
        search filter of parent viewer. Can return null.
      • highlightText

        protected StyledString highlightText​(String text)
        Highlights given text using parents viewer search pattern.
        Parameters:
        text - - text to highlight. Can't be null.
        Returns:
        highlited text. Can't return null.
      • highlightText

        protected StyledString highlightText​(String text,
                                             SearchFilterWithHistory searchFilter)
        Highlights given text using given search pattern.
        Parameters:
        text - - text to highlight. Can't be null.
        searchFilter - - search filter. Can be null.
        Returns:
        highlited text. Can't return null.
      • getExtensionHandlerImage

        protected org.eclipse.swt.graphics.Image getExtensionHandlerImage​(ExtensionMethodContainer extensionMethodContainer)
        Returns extension method image.
        Parameters:
        extensionMethodContainer - - extension method container. Can't be null.
        Returns:
        extension method image. Can't return null.