Author: dgeraskov
Date: 2008-10-10 09:58:48 -0400 (Fri, 10 Oct 2008)
New Revision: 10775
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2345
https://jira.jboss.org/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-10
13:52:31 UTC (rev 10774)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java 2008-10-10
13:58:48 UTC (rev 10775)
@@ -109,6 +109,9 @@
}
public void widgetSelected(SelectionEvent e) {
+ consoleConfigurationName.setEnabled(selectMethod.getSelection());
+ connectionProfileName.setEnabled(!selectMethod.getSelection());
+ schemaName.setEnabled(!selectMethod.getSelection());
dialogChanged();
}});
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
@@ -183,10 +186,7 @@
}
- protected void dialogChanged() {
- consoleConfigurationName.setEnabled(selectMethod.getSelection());
- connectionProfileName.setEnabled(!selectMethod.getSelection());
- schemaName.setEnabled(!selectMethod.getSelection());
+ protected void dialogChanged() {
if (selectMethod.getSelection() &&
(StringHelper.isEmpty(getConfigurationName()))){
setPageComplete(false);