X-Git-Url: http://git.argeo.org/?p=gpl%2Fargeo-suite.git;a=blobdiff_plain;f=org.argeo.suite.e4%2Fsrc%2Forg%2Fargeo%2Fsuite%2Fe4%2Fparts%2FEntitySingleColumnLabelProvider.java;fp=org.argeo.suite.e4%2Fsrc%2Forg%2Fargeo%2Fsuite%2Fe4%2Fparts%2FEntitySingleColumnLabelProvider.java;h=5387d304662c1d1c45f7e0d2066d5fa4d73f3b89;hp=c0755745077c85298ef7502f5382c9cf01fc1f74;hb=d6463016cbcd660c72cc74ebaa2a6e8247ccfa4f;hpb=53baf6f0165a51fd6b0f1067606816a7153de117 diff --git a/org.argeo.suite.e4/src/org/argeo/suite/e4/parts/EntitySingleColumnLabelProvider.java b/org.argeo.suite.e4/src/org/argeo/suite/e4/parts/EntitySingleColumnLabelProvider.java index c075574..5387d30 100644 --- a/org.argeo.suite.e4/src/org/argeo/suite/e4/parts/EntitySingleColumnLabelProvider.java +++ b/org.argeo.suite.e4/src/org/argeo/suite/e4/parts/EntitySingleColumnLabelProvider.java @@ -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) {