Revision b5fcefe6
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/RemotingLoginDialog.java | ||
---|---|---|
585 | 585 |
} |
586 | 586 |
|
587 | 587 |
private void checkSelectedCdmServer() { |
588 |
if(selectedCsii != null) { |
|
589 |
if(selectedCsii.isLocalhost()) { |
|
590 |
txtPort.setEditable(true); |
|
591 |
txtPort.setEnabled(true); |
|
592 |
} |
|
593 |
if(selectedCsii.pingServer()) { |
|
594 |
txtCdmServerStatus.setText(STATUS_AVAILABLE); |
|
595 |
populateCdmInstanceCombo(true); |
|
596 |
String serverVersionTimestamp = generateLastModifiedTooltip(selectedCsii.getCdmlibLastModified()); |
|
597 |
txtServerVersion.setText(selectedCsii.getCdmlibServicesVersion() + ":" + serverVersionTimestamp); //$NON-NLS-1$ |
|
598 |
} else { |
|
599 |
txtCdmServerStatus.setText(STATUS_NOT_AVAILABLE); |
|
600 |
comboCdmInstance.removeAll(); |
|
601 |
disableCdmInstanceControls("", ""); |
|
588 |
try{ |
|
589 |
if(selectedCsii != null) { |
|
590 |
if(selectedCsii.isLocalhost()) { |
|
591 |
txtPort.setEditable(true); |
|
592 |
txtPort.setEnabled(true); |
|
593 |
} |
|
594 |
if(selectedCsii.pingServer()) { |
|
595 |
txtCdmServerStatus.setText(STATUS_AVAILABLE); |
|
596 |
populateCdmInstanceCombo(true); |
|
597 |
String serverVersionTimestamp = generateLastModifiedTooltip(selectedCsii.getCdmlibLastModified()); |
|
598 |
txtServerVersion.setText(selectedCsii.getCdmlibServicesVersion() + ":" + serverVersionTimestamp); //$NON-NLS-1$ |
|
599 |
} else { |
|
600 |
txtCdmServerStatus.setText(STATUS_NOT_AVAILABLE); |
|
601 |
comboCdmInstance.removeAll(); |
|
602 |
disableCdmInstanceControls("", ""); |
|
603 |
} |
|
602 | 604 |
} |
605 |
updatePort(); |
|
606 |
} |
|
607 |
catch(SWTException e){ |
|
608 |
//catch widget is disposed exception which may occurr if |
|
609 |
//dialog is closed but the runnable tries to update |
|
603 | 610 |
} |
604 |
updatePort(); |
|
605 | 611 |
} |
606 | 612 |
|
607 | 613 |
|
Also available in: Unified diff
catch possible widget is exposed exception