if (element instanceof TypeTreeNode) {
TypeTreeNode testNode = (TypeTreeNode) element;
return TextUtils.shrinkNamespace(testNode.getType().getName());
}
if (element instanceof FeatureTreeNode) {
FeatureTreeNode fNode = (FeatureTreeNode) element;
return fNode.getName();
}
return "error";
}