Author: dgeraskov
Date: 2008-10-20 06:06:06 -0400 (Mon, 20 Oct 2008)
New Revision: 10971
Modified:
branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2345
http://jira.jboss.com/jira/browse/JBIDE-2344
Modified:
branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java
===================================================================
---
branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java 2008-10-20
10:05:24 UTC (rev 10970)
+++
branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java 2008-10-20
10:06:06 UTC (rev 10971)
@@ -101,7 +101,7 @@
selectMethod = new Button(container, SWT.CHECK);
selectMethod.setText("Use Console Configuration");
selectMethod.setSelection(true);
- selectMethod.setEnabled(false);
+ //selectMethod.setEnabled(false);
selectMethod.addSelectionListener(new SelectionListener(){
public void widgetDefaultSelected(SelectionEvent e) {
@@ -112,6 +112,9 @@
consoleConfigurationName.setEnabled(selectMethod.getSelection());
connectionProfileName.setEnabled(!selectMethod.getSelection());
schemaName.setEnabled(!selectMethod.getSelection());
+ if (!selectMethod.getSelection()){
+ setMessage("Hibernate dialect is not specified", WARNING);
+ }
dialogChanged();
}});
GridData gd = new GridData(GridData.FILL_HORIZONTAL);