|
Eclipse JDT 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Common protocol for Java elements that support source code assist and code resolve.
This interface is not intended to be implemented by clients.
| Method Summary | |
void |
codeComplete(int offset,
ICodeCompletionRequestor requestor)
Deprecated. - use codeComplete(int, ICompletionRequestor) instead |
void |
codeComplete(int offset,
ICompletionRequestor requestor)
Performs code completion at the given offset position in this compilation unit, reporting results to the given completion requestor. |
IJavaElement[] |
codeSelect(int offset,
int length)
Performs code selection on the given selected text in this compilation unit, reporting results to the given selection requestor. |
| Method Detail |
public void codeComplete(int offset,
ICompletionRequestor requestor)
throws JavaModelException
offset
is the 0-based index of the character, after which code assist is desired.
An offset of -1 indicates to code assist at the beginning of this
compilation unit.
offset - the given offset positionrequestor - the given completion requestor
JavaModelException - if code assist could not be performed. Reasons include:IllegalArgumentException - if requestor is null
public IJavaElement[] codeSelect(int offset,
int length)
throws JavaModelException
offset
is the 0-based index of the first selected character. The length
is the number of selected characters.
offset - the given offset positionlength - the number of selected characters
JavaModelException - if code resolve could not be performed. Reasons include:
public void codeComplete(int offset,
ICodeCompletionRequestor requestor)
throws JavaModelException
offset
is the 0-based index of the character, after which code assist is desired.
An offset of -1 indicates to code assist at the beginning of this
compilation unit.
offset - the given offset positionrequestor - the given completion requestor
JavaModelException - if code assist could not be performed. Reasons include:IllegalArgumentException - if requestor is null
|
Eclipse JDT 2.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||