final String attributeNamespace,
final String attributeName,
final Expression expression,
final ExpressionMetaData expressionMetaData)
{
final AttributeMetaData attrDescr = element.getMetaData().getAttributeDescription(attributeNamespace, attributeName);
if (attrDescr != null && attrDescr.isDeprecated())
{
final String message = attrDescr.getDeprecationMessage(Locale.getDefault());
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("DeprecatedUsagesInspection.StyleExpressionTargetDeprecated",
element.getName(), attrDescr.getDisplayName(Locale.getDefault()), message),
new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
}
if (expressionMetaData == null)
{
return;
}
if (expressionMetaData.isDeprecated() == false)
{
return;
}
final String message = expressionMetaData.getDeprecationMessage(Locale.getDefault());
if (attrDescr != null)
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
Messages.getString("DeprecatedUsagesInspection.StyleExpressionDeprecated",
element.getName(), attrDescr.getDisplayName(Locale.getDefault()), message),
new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
}
else
{
resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,