Author: dgeraskov
Date: 2008-10-21 08:36:31 -0400 (Tue, 21 Oct 2008)
New Revision: 11040
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/DriverClassHelpers.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2931
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/DriverClassHelpers.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/DriverClassHelpers.java 2008-10-21
12:30:03 UTC (rev 11039)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/DriverClassHelpers.java 2008-10-21
12:36:31 UTC (rev 11040)
@@ -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