|
LPEX 4.4.0 |
|||||||||
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:
This is the LPEX version of
org.eclipse.jface.text.contentassist.ICompletionProposalExtension
.
It has different apply() and isValidFor() methods.
Method Summary | |
---|---|
void |
apply(ITextViewer textViewer,
char trigger,
int offset)
Apply the proposed completion to the document of the specified LpexTextViewer. |
int |
getContextInformationPosition()
Return 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()
Return the characters which trigger the application of this completion proposal. |
boolean |
isValidFor(ITextViewer textViewer,
LpexDocumentLocation location)
Return whether this completion proposal is valid for the given position in the given document. |
Method Detail |
---|
void apply(ITextViewer textViewer, char trigger, int offset)
isValidFor(ITextViewer, com.ibm.lpex.core.LpexDocumentLocation)
returns
true
if called for location
.
textViewer
- the LpexTextViewer into whose document to insert
the proposed completiontrigger
- the trigger to apply the completionoffset
- document offset at which the trigger has been activatedboolean isValidFor(ITextViewer textViewer, LpexDocumentLocation location)
textViewer
- the LpexTextViewer whose document the proposal is
tested forlocation
- document location at which the trigger has been activated
true
iff validchar[] getTriggerCharacters()
null
if no completion other than via Enter is
possibleint getContextInformationPosition()
-1
if no context information can be provided by this
completion proposal.
-1
for no information
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |