|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICompletionProposalExtension
Extends ICompletionProposal
with the following functions:
| Method Summary | |
|---|---|
void |
apply(IDocument document,
char trigger,
int offset)
Applies the proposed completion to the given document. |
int |
getContextInformationPosition()
Returns the position to which the computed context information refers to or -1 if no context information can be provided by this completion proposal. |
char[] |
getTriggerCharacters()
Returns the characters which trigger the application of this completion proposal. |
boolean |
isValidFor(IDocument document,
int offset)
Returns whether this completion proposal is valid for the given position in the given document. |
| Method Detail |
|---|
void apply(IDocument document,
char trigger,
int offset)
isValidFor(IDocument, int) returns
true if called for offset.
document - the document into which to insert the proposed completiontrigger - the trigger to apply the completionoffset - the offset at which the trigger has been activated
boolean isValidFor(IDocument document,
int offset)
document - the document for which the proposal is testedoffset - the offset for which the proposal is tested
true iff validchar[] getTriggerCharacters()
null
if no completion other than the new line character is possibleint getContextInformationPosition()
-1 if no context information can be provided by this completion proposal.
-1 for no information
|
Eclipse Platform Release 3.6 |
|||||||||
| 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, 2010. All rights reserved.