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;
}
}
/**