Author: dgeraskov
Date: 2009-12-29 05:46:22 -0500 (Tue, 29 Dec 2009)
New Revision: 19604
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFileWizard.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5330
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFileWizard.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFileWizard.java 2009-12-29
10:39:57 UTC (rev 19603)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/NewHibernateMappingFileWizard.java 2009-12-29
10:46:22 UTC (rev 19604)
@@ -191,12 +191,12 @@
try {
types = cu.getTypes();
//remove java extension.
- String typeName = cu.getElementName().substring(0, cu.getElementName().length() -
5);
+ //String typeName = cu.getElementName().substring(0, cu.getElementName().length() -
5);
for (int j = 0; j < types.length; j++) {
- if (types[j].getElementName().equals(typeName)){
+ //if (types[j].getElementName().equals(typeName)){
filteredElements.add(types[j]);
- break;
- }
+ // break;
+ //}
}
} catch (JavaModelException e) {
e.printStackTrace();