private Text jdbcUrl;
private URLSetupControl urlSetupControl;
private Composite container;
+ private boolean requiresRebuild = false;
private PropertyChangeListener listener = new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent event) {
setControl(container);
}
+ public void setVisible(boolean visible) {
+ if (visible && this.requiresRebuild) {
+ rebuildJDBCControls(this.driver);
+ }
+ super.setVisible(visible);
+ }
+
/**
* @param container
*/
if (oldDriverClassName == null
|| !oldDriverClassName.equals(this.driver.getClassName())) {
- rebuildJDBCControls(this.driver);
+ this.requiresRebuild = true;
}
}
/**
boolean complete = true;
complete &= (this.connectionURL != null
&& this.connectionURL.trim().length() > 0);
- complete &= (this.userid != null
- && this.userid.trim().length() > 0);
+ // Some databases don't use user id
+ //complete &= (this.userid != null
+ // && this.userid.trim().length() > 0);
setPageComplete(complete);
}
/**