public abstract class AbstractCompletionProvider extends Object implements ICompletionProvider
TRACE_CODE_COMPLETION
Constructor and Description |
---|
AbstractCompletionProvider() |
Modifier and Type | Method and Description |
---|---|
ICompletionContext |
getContext()
Get the current context.
|
Collection<? extends ScriptCompletionProposal> |
getProposals(ICompletionContext context)
Calculate all matching proposals for given
ICompletionContext . |
boolean |
isActive(ICompletionContext context)
Query indicating that this providers completion proposals should be taken into account.
|
public boolean isActive(ICompletionContext context)
ICompletionProvider
isActive
in interface ICompletionProvider
context
- ICompletionContext
with necessary information to calculate proposals.true
when activepublic Collection<? extends ScriptCompletionProposal> getProposals(ICompletionContext context)
ICompletionProvider
ICompletionContext
.getProposals
in interface ICompletionProvider
context
- ICompletionContext
with necessary information to calculate proposals.public ICompletionContext getContext()
prepareProposals(ICompletionContext)
is
called.null
when proposals are not evaluated