Package org.eclipse.jface.text.source
Class TextInvocationContext
java.lang.Object
org.eclipse.jface.text.source.TextInvocationContext
- All Implemented Interfaces:
- IQuickAssistInvocationContext
Text quick assist invocation context.
 
Clients may extend this class to add additional context information.
- Since:
- 3.3
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the length of the selection at the invocation offset.intReturns the offset where quick assist was invoked.Returns the viewer for this context.
- 
Constructor Details- 
TextInvocationContext
 
- 
- 
Method Details- 
getOffsetpublic int getOffset()Description copied from interface:IQuickAssistInvocationContextReturns the offset where quick assist was invoked.- Specified by:
- getOffsetin interface- IQuickAssistInvocationContext
- Returns:
- the invocation offset or -1if unknown
 
- 
getLengthpublic int getLength()Description copied from interface:IQuickAssistInvocationContextReturns the length of the selection at the invocation offset.- Specified by:
- getLengthin interface- IQuickAssistInvocationContext
- Returns:
- the length of the current selection or -1if none or unknown
 
- 
getSourceViewerDescription copied from interface:IQuickAssistInvocationContextReturns the viewer for this context.- Specified by:
- getSourceViewerin interface- IQuickAssistInvocationContext
- Returns:
- the viewer or nullif not available
 
 
-