Package org.eclipse.e4.ui.internal
Class LocaleChangeServiceContextFunction
java.lang.Object
org.eclipse.e4.core.contexts.ContextFunction
org.eclipse.e4.ui.internal.LocaleChangeServiceContextFunction
- All Implemented Interfaces:
IContextFunction
Context function to provide the LocaleChangeServiceImpl to the application context.
-
Field Summary
Fields inherited from interface org.eclipse.e4.core.contexts.IContextFunction
SERVICE_CONTEXT_KEY, SERVICE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompute(IEclipseContext context, String contextKey) Evaluates the function based on the provided arguments and context to produce a consistent result.Methods inherited from class org.eclipse.e4.core.contexts.ContextFunction
compute
-
Constructor Details
-
LocaleChangeServiceContextFunction
public LocaleChangeServiceContextFunction()
-
-
Method Details
-
compute
Description copied from interface:IContextFunctionEvaluates the function based on the provided arguments and context to produce a consistent result.- Specified by:
computein interfaceIContextFunction- Overrides:
computein classContextFunction- Parameters:
context- The context in which to perform the value computation.contextKey- The context key used to find this function; may benullsuch as if invoked directly.- Returns:
- The concrete value. Implementations may return
IInjector.NOT_A_VALUEto cause lookup to continue up the context hierarchy.
-