Start using entity framework.
[gpl/argeo-suite.git] / org.argeo.suite.e4 / src / org / argeo / suite / e4 / parts / EntitySingleColumnLabelProvider.java
index c0755745077c85298ef7502f5382c9cf01fc1f74..5387d304662c1d1c45f7e0d2066d5fa4d73f3b89 100644 (file)
@@ -70,9 +70,12 @@ public class EntitySingleColumnLabelProvider extends ColumnLabelProvider impleme
                                result = mlInstanceLp.getText(element);
                        else if (entity.isNodeType(PeopleTypes.PEOPLE_GROUP))
                                result = groupLp.getText(element);
-                       else if (entity.isNodeType(NodeType.MIX_TITLE) && entity.hasProperty(Property.JCR_TITLE))
-                               result = entity.getProperty(Property.JCR_TITLE).getString();
-                       else
+                       else if (entity.isNodeType(NodeType.MIX_TITLE)) {
+                               if (entity.hasProperty(Property.JCR_TITLE))
+                                       result = entity.getProperty(Property.JCR_TITLE).getString();
+                               else
+                                       result = entity.getName();
+                       } else
                                result = "";
                        return ConnectUtils.replaceAmpersand(result);
                } catch (RepositoryException re) {