final BeanUtility utility = new BeanUtility(expression);
final ExpressionMetaData data = ExpressionRegistry.getInstance().getExpressionMetaData(expressionName);
final ExpressionPropertyMetaData[] datas = data.getPropertyDescriptions();
for (int i = 0; i < datas.length; i++)
{
final ExpressionPropertyMetaData metaData = datas[i];
if (metaData.isHidden())
{
continue;
}
if (WorkspaceSettings.getInstance().isShowExpertItems() == false && metaData.isExpert())
{
continue;
}
if (WorkspaceSettings.getInstance().isShowDeprecatedItems() == false && metaData.isDeprecated())
{
continue;
}
if ("name".equals(metaData.getName()))
{
continue;
}
final Object o = utility.getProperty(metaData.getName());
if (metaData.isMandatory() && o == null)
{
final StyleMetaData description = element.getMetaData().getStyleDescription(styleKey);
final String displayName;
if (description == null)
{
displayName = styleKey.getName();
}
else
{
displayName = description.getDisplayName(Locale.getDefault());
}
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("ExpressionsParameterInspection.StyleExpressionMandatoryPropertyMissing",
element.getName(), displayName, metaData.getDisplayName(Locale.getDefault())),
new StyleExpressionPropertyLocationInfo(element, styleKey, metaData.getName())));
}
}
if (expression instanceof ValidateableExpression)
{