whenElementName);
return ERROR_EXPRESSION;
}
// Convert the activeWhen element into an expression.
final ElementHandler elementHandler = ElementHandler
.getDefault();
final ExpressionConverter converter = ExpressionConverter
.getDefault();
final IConfigurationElement expressionElement = expressionElements[0];
try {
whenExpression = elementHandler.create(converter,
expressionElement);
} catch (final CoreException e) {
// There when expression could not be created.
addWarning(
warningsToLog,