public interface ICompletionProposalExtension
ICompletionProposalwith the following functions:
|Modifier and Type||Method and Description|
Applies the proposed completion to the given document.
Returns the position to which the computed context information refers to or
Returns the characters which trigger the application of this completion proposal.
Returns whether this completion proposal is valid for the given position in the given document.
void apply(IDocument document, char trigger, int offset)
trueif called for
document- the document into which to insert the proposed completion
trigger- the trigger to apply the completion
offset- the offset at which the trigger has been activated
boolean isValidFor(IDocument document, int offset)
document- the document for which the proposal is tested
offset- the offset for which the proposal is tested
nullif no completion other than the new line character is possible
-1if no context information can be provided by this completion proposal.
-1for no information
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.