SSR: proper reference target text

This commit is contained in:
Bas Leijdekkers
2017-11-03 08:54:32 +01:00
parent 441d2425a7
commit 25ee6d918d
2 changed files with 3 additions and 1 deletions
@@ -135,7 +135,8 @@ public class SubstitutionShortInfoHandler implements DocumentListener, EditorMou
}
if (!StringUtil.isEmpty(constraint.getReferenceConstraint())) {
final String text = StringUtil.unquoteString(constraint.getReferenceConstraint());
append(buf, "reference target matches: " + text);
append(buf, SSRBundle.message("reference.target.tooltip.message",
constraint.isInvertReference() ? SSRBundle.message("not.tooltip.message") : "", text));
}
if (constraint.getNameOfExprType() != null && !constraint.getNameOfExprType().isEmpty()) {
@@ -183,6 +183,7 @@ within.hierarchy.tooltip.message=search in supers
script.tooltip.message=script:\n {0}
within.constraints.tooltip.message=within {0}
not.within.constraints.tooltip.message=not within {0}
reference.target.tooltip.message=reference target{0} like: {1}
complete.match.variable.tooltip.message=Complete Match: {0}
replacement.variable.is.not.defined.message=Replacement variable {0} is not defined.
replacement.variable.is.not.valid=Replacement variable {0} has script code problem {1}