Package org.eclipse.ui.texteditor
Class HippieProposalProcessor
java.lang.Object
org.eclipse.ui.texteditor.HippieProposalProcessor
- All Implemented Interfaces:
IContentAssistProcessor
A completion proposal computer for hippie word completions.
Clients may instantiate.
- Since:
- 3.2
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new hippie completion proposal computer. -
Method Summary
Modifier and TypeMethodDescriptioncomputeCompletionProposals(ITextViewer viewer, int offset) Returns a list of completion proposals based on the specified location within the document that corresponds to the current cursor position within the text viewer.computeContextInformation(ITextViewer viewer, int offset) Returns information about possible contexts based on the specified location within the document that corresponds to the current cursor position within the text viewer.char[]Returns the characters which when entered by the user should automatically trigger the presentation of possible completions.char[]Returns the characters which when entered by the user should automatically trigger the presentation of context information.Returns a validator used to determine when displayed context information should be dismissed.Returns the reason why this content assist processor was unable to produce any completion proposals or context information.
-
Constructor Details
-
HippieProposalProcessor
public HippieProposalProcessor()Creates a new hippie completion proposal computer.
-
-
Method Details
-
computeCompletionProposals
Description copied from interface:IContentAssistProcessorReturns a list of completion proposals based on the specified location within the document that corresponds to the current cursor position within the text viewer.- Specified by:
computeCompletionProposalsin interfaceIContentAssistProcessor- Parameters:
viewer- the viewer whose document is used to compute the proposalsoffset- an offset within the document for which completions should be computed- Returns:
- an array of completion proposals or
nullif no proposals are possible
-
computeContextInformation
Description copied from interface:IContentAssistProcessorReturns information about possible contexts based on the specified location within the document that corresponds to the current cursor position within the text viewer.- Specified by:
computeContextInformationin interfaceIContentAssistProcessor- Parameters:
viewer- the viewer whose document is used to compute the possible contextsoffset- an offset within the document for which context information should be computed- Returns:
- an array of context information objects or
nullif no context could be found
-
getCompletionProposalAutoActivationCharacters
public char[] getCompletionProposalAutoActivationCharacters()Description copied from interface:IContentAssistProcessorReturns the characters which when entered by the user should automatically trigger the presentation of possible completions.- Specified by:
getCompletionProposalAutoActivationCharactersin interfaceIContentAssistProcessor- Returns:
- the auto activation characters for completion proposal or
nullif no auto activation is desired
-
getContextInformationAutoActivationCharacters
public char[] getContextInformationAutoActivationCharacters()Description copied from interface:IContentAssistProcessorReturns the characters which when entered by the user should automatically trigger the presentation of context information.- Specified by:
getContextInformationAutoActivationCharactersin interfaceIContentAssistProcessor- Returns:
- the auto activation characters for presenting context information
or
nullif no auto activation is desired
-
getContextInformationValidator
Description copied from interface:IContentAssistProcessorReturns a validator used to determine when displayed context information should be dismissed. May only returnnullif the processor is incapable of computing context information.- Specified by:
getContextInformationValidatorin interfaceIContentAssistProcessor- Returns:
- a context information validator, or
nullif the processor is incapable of computing context information
-
getErrorMessage
Description copied from interface:IContentAssistProcessorReturns the reason why this content assist processor was unable to produce any completion proposals or context information.- Specified by:
getErrorMessagein interfaceIContentAssistProcessor- Returns:
- an error message or
nullif no error occurred
-