private Text txtCdmInstanceStatus;
private Combo comboCdmServer;
+ boolean allowServerChange = true;
private Combo comboCdmInstance;
+ boolean allowInstanceChange = true;
private Button btnConnect;
private Composite remotingComposite;
this.setInstanceName(contextPath == null? "" : contextPath.substring(contextPath.lastIndexOf("/") + 1)); //$NON-NLS-1$
}
//disable datasource selection if datasource is given, see #10463
- this.comboCdmServer.setEnabled(false);
- this.comboCdmServer.setVisible(false);
- this.comboCdmInstance.setEnabled(false);
- this.comboCdmInstance.setListVisible(false);
+
+ allowServerChange = false;
+ allowInstanceChange = false;
+ this.comboCdmServer.setEnabled(allowServerChange);
+ this.comboCdmInstance.setEnabled(allowInstanceChange);
return open(getServerName(), getInstanceName(), loadLoginPrefs, autoConnect);
}
getServerInfoMap().put(csii.getName(), csii);
}
public void onRefreshCdmServer() {
- try{
+ if (!allowServerChange) {
+ return;
+ }
+
+ try{
txtCdmServerStatus.setText(STATUS_CHECKING_AVAILABILITY);
clearOnServerChange();
emptyCredentials();
}
protected void populateCdmInstanceCombo(final boolean forceRefresh) {
- comboCdmInstance.removeAll();
+ if (!allowInstanceChange) {
+ return;
+ }
+
+ comboCdmInstance.removeAll();
comboCdmInstance.setEnabled(false);
btnConnect.setEnabled(false);
txtCdmInstanceStatus.setText(STATUS_RETRIEVING);