Interface IQuickAssistInvocationContext

All Known Implementing Classes:
TextInvocationContext

public interface IQuickAssistInvocationContext
Context information for quick fix and quick assist processors.

This interface can be implemented by clients.

Since:
3.2
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    int
    Returns the length of the selection at the invocation offset.
    int
    Returns the offset where quick assist was invoked.
    Returns the viewer for this context.
  • Method Details Link icon

    • getOffset Link icon

      int getOffset()
      Returns the offset where quick assist was invoked.
      Returns:
      the invocation offset or -1 if unknown
    • getLength Link icon

      int getLength()
      Returns the length of the selection at the invocation offset.
      Returns:
      the length of the current selection or -1 if none or unknown
    • getSourceViewer Link icon

      ISourceViewer getSourceViewer()
      Returns the viewer for this context.
      Returns:
      the viewer or null if not available