}
return image;
}
public String getColumnText(Object element, String property) {
EORelationship relationship = (EORelationship) element;
String text = null;
if (EORelationship.TO_MANY.equals(property)) {
// DO NOTHING
} else if (EORelationship.CLASS_PROPERTY.equals(property)) {
// DO NOTHING
} else if (EORelationship.OPTIONAL.equals(property)) {
// DO NOTHING
} else if (EORelationship.DESTINATION.equals(property)) {
EOEntity destination = relationship.getDestination();
if (destination != null) {
text = destination.getName();
}
} else if (EOJoin.SOURCE_ATTRIBUTE.equals(property)) {
EOJoin firstJoin = relationship.getFirstJoin();
if (firstJoin != null) {
EOAttribute sourceAttribute = firstJoin.getSourceAttribute();
if (sourceAttribute != null) {
text = sourceAttribute.getName();
}
}
} else if (EOJoin.DESTINATION_ATTRIBUTE.equals(property)) {
EOJoin firstJoin = relationship.getFirstJoin();
if (firstJoin != null) {
EOAttribute destinationAttribute = firstJoin.getDestinationAttribute();
if (destinationAttribute != null) {
text = destinationAttribute.getName();
}