Class PythonCompletionProviderWrapper
java.lang.Object
org.eclipse.ease.lang.python.ui.completion.PythonCompletionProviderWrapper
- All Implemented Interfaces:
ICompletionProvider
public class PythonCompletionProviderWrapper extends Object implements ICompletionProvider
ICompletionProvider
dispatching actual completion calculation to Python.-
Constructor Summary
Constructors Constructor Description PythonCompletionProviderWrapper()
-
Method Summary
Modifier and Type Method Description Collection<ScriptCompletionProposal>
getProposals(ICompletionContext context)
Calculate all matching proposals.boolean
isActive(ICompletionContext context)
Query indicating that this providers completion proposals should be taken into account.void
setPythonPprovider(ICompletionProvider provider)
Sets the Python counterpart for theICompletionProvider
.
-
Constructor Details
-
PythonCompletionProviderWrapper
public PythonCompletionProviderWrapper()
-
-
Method Details
-
setPythonPprovider
Sets the Python counterpart for theICompletionProvider
.- Parameters:
provider
- PythonICompletionProvider
.
-
getProposals
Description copied from interface:ICompletionProvider
Calculate all matching proposals.- Specified by:
getProposals
in interfaceICompletionProvider
- Parameters:
context
- with necessary information to calculate proposals.- Returns:
- Collection of matching proposals.
-
isActive
Description copied from interface:ICompletionProvider
Query indicating that this providers completion proposals should be taken into account.- Specified by:
isActive
in interfaceICompletionProvider
- Parameters:
context
- with necessary information to calculate proposals.- Returns:
true
when active
-