public abstract class ContextFunction extends Object implements IContextFunction
IContextFunctionfor specific rules that must be followed by function implementations.
This class is intended to be subclassed by clients.
|Constructor and Description|
Constructs a new instance of the context function
|Modifier and Type||Method and Description|
Evaluates the function based on the provided arguments and context to produce a consistent result.
public Object compute(IEclipseContext context)
IContextFunction's compute() was changed to take the context key
public Object compute(IEclipseContext context, String contextKey)
context- The context in which to perform the value computation.
contextKey- The context key used to find this function; may be
nullsuch as if invoked directly.
IInjector.NOT_A_VALUEto cause lookup to continue up the context hierarchy.
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.