Project

General

Profile

Revision b5fcefe6

IDb5fcefe6974fc004c35896cbd8d1d0fdf3a35bee
Parent 785b88aa
Child 3a45849e

Added by Patrick Plitzner almost 2 years ago

catch possible widget is exposed exception

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)