|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.source.TextInvocationContext
Text quick assist invocation context.
Clients may extend this class to add additional context information.
Constructor Summary | |
TextInvocationContext(ISourceViewer sourceViewer,
int offset,
int length)
|
Method Summary | |
int |
getLength()
Returns the length of the selection at the invocation offset. |
int |
getOffset()
Returns the offset where quick assist was invoked. |
ISourceViewer |
getSourceViewer()
Returns the viewer for this context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextInvocationContext(ISourceViewer sourceViewer, int offset, int length)
Method Detail |
public int getOffset()
IQuickAssistInvocationContext
getOffset
in interface IQuickAssistInvocationContext
-1
if unknownpublic int getLength()
IQuickAssistInvocationContext
getLength
in interface IQuickAssistInvocationContext
-1
if none or unknownpublic ISourceViewer getSourceViewer()
IQuickAssistInvocationContext
getSourceViewer
in interface IQuickAssistInvocationContext
null
if not available
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.