Interface IContentAssistProcessorExtension
-
- All Superinterfaces:
IContentAssistProcessor
public interface IContentAssistProcessorExtension extends IContentAssistProcessor
Extension interface ofIContentAssistProcessor
that allows to get additional information when queried for auto activation- Since:
- 3.17
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static IContentAssistProcessorExtension
adapt(IContentAssistProcessor processor)
default char[]
getCompletionProposalAutoActivationCharacters()
Deprecated.default char[]
getContextInformationAutoActivationCharacters()
Deprecated.boolean
isCompletionProposalAutoActivation(char c, ITextViewer viewer, int offset)
Check if the given event should trigger an automatic completion proposal activationboolean
isContextInformationAutoActivation(char c, ITextViewer viewer, int offset)
Check if the given event should trigger an automatic context info activation-
Methods inherited from interface org.eclipse.jface.text.contentassist.IContentAssistProcessor
computeCompletionProposals, computeContextInformation, getContextInformationValidator, getErrorMessage
-
-
-
-
Method Detail
-
getCompletionProposalAutoActivationCharacters
@Deprecated default char[] getCompletionProposalAutoActivationCharacters()
Deprecated.Description copied from interface:IContentAssistProcessor
Returns the characters which when entered by the user should automatically trigger the presentation of possible completions.- Specified by:
getCompletionProposalAutoActivationCharacters
in interfaceIContentAssistProcessor
- Returns:
- the auto activation characters for completion proposal or
null
if no auto activation is desired - Restriction:
- use
isCompletionProposalAutoActivation(char, ITextViewer, int)
instead - Restriction:
- This default method is not intended to be re-implemented or extended by
clients.noimplement implement
isCompletionProposalAutoActivation(char, ITextViewer, int)
instead
-
getContextInformationAutoActivationCharacters
@Deprecated default char[] getContextInformationAutoActivationCharacters()
Deprecated.Description copied from interface:IContentAssistProcessor
Returns the characters which when entered by the user should automatically trigger the presentation of context information.- Specified by:
getContextInformationAutoActivationCharacters
in interfaceIContentAssistProcessor
- Returns:
- the auto activation characters for presenting context information
or
null
if no auto activation is desired - Restriction:
- use
isContextInformationAutoActivation(char, ITextViewer, int)
instead - Restriction:
- This default method is not intended to be re-implemented or extended by
clients.noimplement implement
isContextInformationAutoActivation(char, ITextViewer, int)
instead
-
isCompletionProposalAutoActivation
boolean isCompletionProposalAutoActivation(char c, ITextViewer viewer, int offset)
Check if the given event should trigger an automatic completion proposal activation- Parameters:
c
- the character to checkviewer
- the vieweroffset
- the current offset- Returns:
true
if auto activation is desired,false
otherwise
-
isContextInformationAutoActivation
boolean isContextInformationAutoActivation(char c, ITextViewer viewer, int offset)
Check if the given event should trigger an automatic context info activation- Parameters:
c
- the character to checkviewer
- the vieweroffset
- the current offset- Returns:
true
if auto activation is desired,false
otherwise
-
adapt
static IContentAssistProcessorExtension adapt(IContentAssistProcessor processor)
-
-