Interface IQuickAssistInvocationContext
-
- All Known Implementing Classes:
TextInvocationContext
public interface IQuickAssistInvocationContextContext information for quick fix and quick assist processors.This interface can be implemented by clients.
- Since:
- 3.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetLength()Returns the length of the selection at the invocation offset.intgetOffset()Returns the offset where quick assist was invoked.ISourceViewergetSourceViewer()Returns the viewer for this context.
-
-
-
Method Detail
-
getOffset
int getOffset()
Returns the offset where quick assist was invoked.- Returns:
- the invocation offset or
-1if unknown
-
getLength
int getLength()
Returns the length of the selection at the invocation offset.- Returns:
- the length of the current selection or
-1if none or unknown
-
getSourceViewer
ISourceViewer getSourceViewer()
Returns the viewer for this context.- Returns:
- the viewer or
nullif not available
-
-