|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContentAssistProcessor
A content assist processor proposes completions and
computes context information for a particular content type.
A content assist processor is a IContentAssistant
text viewer plug-in.
This interface must be implemented by clients. Implementers should be registered with a content assistant in order to get involved in the assisting process.
This is the LPEX version of
org.eclipse.jface.text.contentassist.IContentAssistProcessor
.
It refers to LPEX content-assist classes.
Method Summary | |
---|---|
ICompletionProposal[] |
computeCompletionProposals(ITextViewer viewer,
int offset)
Return a list of completion proposals based on the specified location within the document that corresponds to the current cursor position within the text viewer. |
IContextInformation[] |
computeContextInformation(ITextViewer viewer,
int offset)
Return information about possible contexts, based on the specified location within the document that corresponds to the current cursor position within the text viewer. |
char[] |
getCompletionProposalAutoActivationCharacters()
Return the characters which, when entered by the user, should automatically trigger the presentation of possible completions. |
char[] |
getContextInformationAutoActivationCharacters()
Return the characters which, when entered by the user, should automatically trigger the presentation of context information. |
IContextInformationValidator |
getContextInformationValidator()
Return a validator used to determine when displayed context information should be dismissed. |
String |
getErrorMessage()
Return the reason why this content assist processor was unable to produce any completion proposals or context information. |
Method Detail |
---|
ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset)
offset
, assuming the current
cursor position.
viewer
- the viewer whose document is used to compute the proposalsoffset
- an offset within the document for which
completions should be computed
null
if no proposals are possibleIContextInformation[] computeContextInformation(ITextViewer viewer, int offset)
offset
, assuming the current
cursor position.
viewer
- the viewer whose document is used to compute the possible contextsoffset
- an offset within the document for which
context information should be computed
null
if no context could be foundchar[] getCompletionProposalAutoActivationCharacters()
null
if no auto activation is desiredchar[] getContextInformationAutoActivationCharacters()
null
if no auto activation is desiredString getErrorMessage()
null
if no error occurredIContextInformationValidator getContextInformationValidator()
null
if the processor is
incapable of computing context information.
null
if the processor is incapable of computing context informationIContextInformationPresenter
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |