Author: mdryakhlenkov
Date: 2007-07-12 11:37:11 -0400 (Thu, 12 Jul 2007)
New Revision: 2408
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelNameVisitor.java
Log:
EXIN-366: Adding elements on the diagram by double-click on fields of classes which have
additional information in mapping files
Fixed bug: not display class name when attribute name not present
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelNameVisitor.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelNameVisitor.java 2007-07-12
15:36:55 UTC (rev 2407)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelNameVisitor.java 2007-07-12
15:37:11 UTC (rev 2408)
@@ -475,9 +475,9 @@
StringBuffer name = new StringBuffer();
// if (((OrmContentProvider) viewer.getContentProvider()).getTip() ==
OrmContentProvider.PACKAGE_CLASS_FIELD_CONTENT_PROVIDER) {
- name.append(clazz.getClassName());
+ name.append(clazz.getEntityName() != null ? clazz.getEntityName() :
clazz.getEntityName());
// } else {
-// name.append(clazz.getClassName());
+// name.append(clazz.getEntityName());
// }
//edit tau 24.04.2006
@@ -502,7 +502,7 @@
// if (((OrmContentProvider) viewer.getContentProvider()).getTip() ==
OrmContentProvider.PACKAGE_CLASS_FIELD_CONTENT_PROVIDER) {
name.append(clazz.getEntityName());
// } else {
-// name.append(clazz.getClassName());
+// name.append(clazz.getEntityName());
// }
//edit tau 24.04.2006
Show replies by date