Author: mculpepper(a)jboss.com
Date: 2007-06-21 12:10:17 -0400 (Thu, 21 Jun 2007)
New Revision: 2154
Modified:
trunk/seam/plugins/org.jboss.ide.seam.gen/META-INF/MANIFEST.MF
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SeamGenAction.java
Log:
commented out RDB dependency for now
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/META-INF/MANIFEST.MF 2007-06-21 09:13:35 UTC
(rev 2153)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/META-INF/MANIFEST.MF 2007-06-21 16:10:17 UTC
(rev 2154)
@@ -14,14 +14,7 @@
org.eclipse.jdt.launching,
org.eclipse.ui.externaltools,
org.eclipse.ant.ui,
- org.eclipse.core.filesystem,
- org.eclipse.wst.rdb.core,
- org.eclipse.wst.rdb.connection.ui,
- org.eclipse.wst.rdb.connection.ui.infopop,
- org.eclipse.wst.rdb.core.ui,
- org.eclipse.wst.rdb.data.core,
- org.eclipse.wst.rdb.data.ui,
- org.eclipse.wst.rdb.dbdefinition.generic.jdbc
+ org.eclipse.core.filesystem
Bundle-ClassPath: org.jboss.ide.seam.gen.jar
Export-Package: org.jboss.ide.seam.gen,
org.jboss.ide.seam.gen.actions
Modified:
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SeamGenAction.java
===================================================================
---
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SeamGenAction.java 2007-06-21
09:13:35 UTC (rev 2153)
+++
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SeamGenAction.java 2007-06-21
16:10:17 UTC (rev 2154)
@@ -41,10 +41,6 @@
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
import org.eclipse.ui.externaltools.internal.launchConfigurations.ExternalToolsUtil;
import org.eclipse.ui.externaltools.internal.model.IExternalToolConstants;
-import org.eclipse.wst.rdb.connection.internal.ui.wizards.shared.NewCWJDBCPage;
-import org.eclipse.wst.rdb.internal.core.RDBCorePlugin;
-import org.eclipse.wst.rdb.internal.core.connection.ConnectionInfo;
-import org.eclipse.wst.rdb.internal.core.definition.DatabaseDefinition;
import org.jboss.ide.seam.gen.QuestionDialog;
import org.jboss.ide.seam.gen.SeamGenPlugin;
@@ -80,35 +76,35 @@
}
if(MessageDialog.openQuestion( getShell(), "Create DB
Connection", "Create DB Connection ?" )) {
- DatabaseDefinition definition = RDBCorePlugin
- .getDefault().getDatabaseDefinitionRegistry()
- .getDefinition( "Generic JDBC",
"1.0" );
+// DatabaseDefinition definition = RDBCorePlugin
+// .getDefault().getDatabaseDefinitionRegistry()
+// .getDefinition( "Generic JDBC",
"1.0" );
+//
+// ConnectionInfo connection = RDBCorePlugin.getDefault()
+// .getConnectionManager().createConnectionInfo(
+// definition,
+// NewCWJDBCPage.createUniqueConnectionName(
NewCWJDBCPage.getExistingConnectionNamesList(), "seamgen-connection"));
- ConnectionInfo connection = RDBCorePlugin.getDefault()
- .getConnectionManager().createConnectionInfo(
- definition,
- NewCWJDBCPage.createUniqueConnectionName(
NewCWJDBCPage.getExistingConnectionNamesList(), "seamgen-connection"));
-
- Properties seamGenProperties = getSeamGenProperties(
launch2.getLaunchConfiguration() );
-
- if(seamGenProperties!=null) {
- connection.setDatabaseName("SeamGen database");
- connection.setURL(seamGenProperties.getProperty(
"hibernate.connection.url", "" ));
- connection.setDriverClassName(seamGenProperties.getProperty(
"hibernate.connection.driver_class", "" ));
- connection.setLoadingPath(seamGenProperties.getProperty(
"driver.jar", "" ));
- connection.setUserName( seamGenProperties.getProperty(
"hibernate.connection.username", "" ) );
- connection.setPassword( seamGenProperties.getProperty(
"hibernate.connection.password", "" ) );
- connection.setCustomProperty(
"JDBC_DRIVER","Other");
- try {
- connection.saveConnectionInfo();
- }
- catch (Exception e) {
- SeamGenPlugin.logError( "Could not save connection info", e);
- }
- } else {
- MessageDialog.openError( getShell(), "Could not read database
settings", "Could not read database settings. See Error log for details"
);
- }
+// Properties seamGenProperties = getSeamGenProperties(
launch2.getLaunchConfiguration() );
+//
+// if(seamGenProperties!=null) {
+// connection.setDatabaseName("SeamGen database");
+// connection.setURL(seamGenProperties.getProperty(
"hibernate.connection.url", "" ));
+// connection.setDriverClassName(seamGenProperties.getProperty(
"hibernate.connection.driver_class", "" ));
+// connection.setLoadingPath(seamGenProperties.getProperty(
"driver.jar", "" ));
+// connection.setUserName( seamGenProperties.getProperty(
"hibernate.connection.username", "" ) );
+// connection.setPassword( seamGenProperties.getProperty(
"hibernate.connection.password", "" ) );
+// connection.setCustomProperty(
"JDBC_DRIVER","Other");
+// try {
+// connection.saveConnectionInfo();
+// }
+// catch (Exception e) {
+// SeamGenPlugin.logError( "Could not save connection info", e);
+// }
+// } else {
+// MessageDialog.openError( getShell(), "Could not read database
settings", "Could not read database settings. See Error log for details"
);
+// }
Show replies by date