}
@Override
public String getText(Object element) {
if (element instanceof AnnotationTreeNode) {
AnnotationTreeNode fnNode = (AnnotationTreeNode) element;
if (fnNode.getAnnotation() != null) {
String typeName = fnNode.getAnnotation().getType().getName();
String coveredText = fnNode.getAnnotation().getCoveredText();
coveredText = coveredText.replaceAll("[\\n]", "").replaceAll("[\\r]", "");
if (typeName.equals(ICasEvaluator.FALSE_POSITIVE)
|| typeName.equals(ICasEvaluator.FALSE_NEGATIVE)
|| typeName.equals(ICasEvaluator.TRUE_POSITIVE)) {
return coveredText;
}
String name = TextUtils.shrinkNamespace(fnNode.getAnnotation().getType().getName());
return (name + ": " + coveredText);
}
}
if (element instanceof TypeTreeNode) {
TypeTreeNode testNode = (TypeTreeNode) element;