Class AbstractCompletionProvider
java.lang.Object
org.eclipse.ease.ui.completion.provider.AbstractCompletionProvider
- All Implemented Interfaces:
ICompletionProvider
- Direct Known Subclasses:
AbstractFileLocationCompletionProvider,AbstractPathCompletionProvider,LoadedModuleCompletionProvider,VariablesCompletionProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the current context.getProposals(ICompletionContext context) Calculate all matching proposals.booleanisActive(ICompletionContext context) Query indicating that this providers completion proposals should be taken into account.
-
Constructor Details
-
AbstractCompletionProvider
public AbstractCompletionProvider()
-
-
Method Details
-
isActive
Description copied from interface:ICompletionProviderQuery indicating that this providers completion proposals should be taken into account.- Specified by:
isActivein interfaceICompletionProvider- Parameters:
context- with necessary information to calculate proposals.- Returns:
truewhen active
-
getProposals
Description copied from interface:ICompletionProviderCalculate all matching proposals.- Specified by:
getProposalsin interfaceICompletionProvider- Parameters:
context- with necessary information to calculate proposals.- Returns:
- Collection of matching proposals.
-
getContext
Get the current context. Only valid during proposal evaluation. Clients may retrieve the content whenprepareProposals(ICompletionContext)is called.- Returns:
- the current context or
nullwhen proposals are not evaluated
-