Interface ContextExtractor

  • All Known Implementing Classes:
    AttributeExtractor, ClassNameExtractor

    public interface ContextExtractor
    A ContextExtractor extract the part of the current TextViewer that is the prefix of of the String. The String provided by implementations of this interface are used to reduce the amount of results provided by content assist.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getPrefix​(ITextViewer source, int currentPosition)
      Given the TextViewer and the position, it scans the content backwards to extract the prefix for the content assist
    • Method Detail

      • getPrefix

        java.lang.String getPrefix​(ITextViewer source,
                                   int currentPosition)
        Given the TextViewer and the position, it scans the content backwards to extract the prefix for the content assist
        Parameters:
        source -
        currentPosition -
        Returns:
        what has been typed before the current position and should be used to filter the content assistance.