Class AbstractCompletionProvider
java.lang.Object
org.eclipse.ease.ui.completion.provider.AbstractCompletionProvider
- All Implemented Interfaces:
ICompletionProvider
- Direct Known Subclasses:
AbstractFileLocationCompletionProvider,AbstractPathCompletionProvider,LoadedModuleCompletionProvider,VariablesCompletionProvider
public abstract class AbstractCompletionProvider extends Object implements ICompletionProvider
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractCompletionProvider.DescriptorImageResolverstatic classAbstractCompletionProvider.WorkbenchDescriptorImageResolver -
Constructor Summary
Constructors Constructor Description AbstractCompletionProvider() -
Method Summary
Modifier and Type Method Description ICompletionContextgetContext()Get the current context.Collection<ScriptCompletionProposal>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
-