}
private boolean isEnabledByEnablementElement(Element enablement, IEvaluationContext context) {
try {
Expression expression = ExpressionConverter.getDefault().perform(enablement);
return expression.evaluate(context) == EvaluationResult.TRUE;
}
catch (CoreException e) {
/*
* This can happen when attempting to resolve a UI variable (e.g. "workbench")
* in a non-UI environment (infocenter mode). Fail silently.