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