Interface ITextHoverExtension3


  • public interface ITextHoverExtension3
    Extension interface for ITextHover.

    Provides a way for hovers to return its accessibility.

    See Also:
    ITextHover, BestMatchEObjectTextHover
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isEnabled​(org.eclipse.jface.text.ITextViewer textViewer, int offset)
      Checks if hover is enabled in the given context.
    • Method Detail

      • isEnabled

        boolean isEnabled​(org.eclipse.jface.text.ITextViewer textViewer,
                          int offset)
        Checks if hover is enabled in the given context.
        Parameters:
        textViewer - the active text viewer (may be null)
        offset - offset to check enablement of this hover in current context or -1 if information about offset is absent
        Returns:
        true if hover is enabled in given context