Class ExpressionFunctionProposalProvider
java.lang.Object
org.dawnsci.common.widgets.gda.function.jexl.ExpressionFunctionProposalProvider
- All Implemented Interfaces:
org.eclipse.jface.fieldassist.IContentProposalProvider
public class ExpressionFunctionProposalProvider
extends Object
implements org.eclipse.jface.fieldassist.IContentProposalProvider
TODO: Resolve this difference/copy. This class is a copy of
org.dawb.workbench.ui.expressions.ExpressionFunctionProposalProvider however
it has been reworked to instead of rely on testing the provider instead
creating proposals that have the needed information (lastMatchBounds,
lastPosition). TODO: small additional TODO/Q about whether non-static methods
should be excluded.
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionFunctionProposalProvider(Map<String, Object> functions) Construct a ExpressionFunctionProposalProvider whose content proposals are always the specified array of Objects. -
Method Summary
Modifier and TypeMethodDescriptionint[]intgetProposals(String contents, int position) voidsetProposals(Map<String, Object> functions)
-
Constructor Details
-
ExpressionFunctionProposalProvider
Construct a ExpressionFunctionProposalProvider whose content proposals are always the specified array of Objects.- Parameters:
functions- the Map of Objects that proposals are extracted from
-
-
Method Details
-
getProposals
- Specified by:
getProposalsin interfaceorg.eclipse.jface.fieldassist.IContentProposalProvider
-
setProposals
-
getLastMatchBounds
public int[] getLastMatchBounds() -
getLastPosition
public int getLastPosition()
-