Author: dgeraskov
Date: 2008-10-21 08:38:38 -0400 (Tue, 21 Oct 2008)
New Revision: 11043
Modified:
branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/DriverClassHelpers.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2931
Modified:
branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/DriverClassHelpers.java
===================================================================
---
branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/DriverClassHelpers.java 2008-10-21
12:38:33 UTC (rev 11042)
+++
branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/DriverClassHelpers.java 2008-10-21
12:38:38 UTC (rev 11043)
@@ -25,11 +25,11 @@
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
+import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
-import org.eclipse.core.runtime.IPath;
/**
* @author max
@@ -260,6 +260,15 @@
return (String[]) list.toArray(new String[list.size()]);
}
+ public String getShortDialectName(String fullName) {
+ Iterator keyIterator = dialectNames.keySet().iterator();
+ while (keyIterator.hasNext()){
+ String key = (String)keyIterator.next();
+ if (dialectNames.get(key).equals(fullName)) return key;
+ }
+ return null;
+ }
+
/**
*
* @param dialectName