Author: dgeraskov
Date: 2008-10-20 06:05:24 -0400 (Mon, 20 Oct 2008)
New Revision: 10970
Modified:
trunk/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:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java 2008-10-20
09:58:30 UTC (rev 10969)
+++
trunk/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)
@@ -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);