Author: vyemialyanchyk
Date: 2009-07-07 14:40:41 -0400 (Tue, 07 Jul 2009)
New Revision: 16477
Added:
branches/jbosstools-3.1.0.M2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/eclipse/launch/
branches/jbosstools-3.1.0.M2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/eclipse/launch/SeamUtil.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4531 - SeamUtil is necessary for
org.jboss.tools.seam.ui\src\org\jboss\tools\seam\ui\wizard\SeamGenerateEnitiesWizard
Added:
branches/jbosstools-3.1.0.M2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/eclipse/launch/SeamUtil.java
===================================================================
---
branches/jbosstools-3.1.0.M2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/eclipse/launch/SeamUtil.java
(rev 0)
+++
branches/jbosstools-3.1.0.M2/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/eclipse/launch/SeamUtil.java 2009-07-07
18:40:41 UTC (rev 16477)
@@ -0,0 +1,28 @@
+package org.hibernate.eclipse.launch;
+
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * Do not remove this file!
+ * This file is necessary for SeamGenerateEnitiesWizard.java
+ * org.jboss.tools.seam.ui
+ * src.org.jboss.tools.seam.ui.wizard.SeamGenerateEnitiesWizard
+ * for more information: JBIDE-4531
+ * This is "hack" to get seam gen code generation work
+ * without launching in a separate process.
+ */
+public class SeamUtil {
+ public String lower(String name)
+ {
+ return name.substring(0, 1).toLowerCase() + name.substring(1);
+ }
+ public String upper(String name)
+ {
+ return name.substring(0, 1).toUpperCase() + name.substring(1);
+ }
+ public Set set()
+ {
+ return new HashSet();
+ }
+}