Revision a2f16aed
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/RemotingLoginDialog.java | ||
---|---|---|
24 | 24 |
import org.eclipse.core.runtime.preferences.ConfigurationScope; |
25 | 25 |
import org.eclipse.core.runtime.preferences.IEclipsePreferences; |
26 | 26 |
import org.eclipse.swt.SWT; |
27 |
import org.eclipse.swt.SWTException; |
|
27 | 28 |
import org.eclipse.swt.custom.StyledText; |
28 | 29 |
import org.eclipse.swt.events.KeyAdapter; |
29 | 30 |
import org.eclipse.swt.events.KeyEvent; |
... | ... | |
529 | 530 |
|
530 | 531 |
|
531 | 532 |
private void refreshCdmServer() { |
532 |
txtCdmServerStatus.setText(STATUS_CHECKING_AVAILABILITY); |
|
533 |
clearOnServerChange(); |
|
534 |
emptyCredentials(); |
|
535 |
updateSelectedCdmServer(); |
|
536 |
Display.getDefault().asyncExec(new Runnable() { |
|
537 |
@Override |
|
538 |
public void run() { |
|
539 |
checkSelectedCdmServer(); |
|
540 |
} |
|
541 |
}); |
|
542 |
|
|
533 |
try{ |
|
534 |
txtCdmServerStatus.setText(STATUS_CHECKING_AVAILABILITY); |
|
535 |
clearOnServerChange(); |
|
536 |
emptyCredentials(); |
|
537 |
updateSelectedCdmServer(); |
|
538 |
Display.getDefault().asyncExec(new Runnable() { |
|
539 |
@Override |
|
540 |
public void run() { |
|
541 |
checkSelectedCdmServer(); |
|
542 |
} |
|
543 |
}); |
|
544 |
} |
|
545 |
catch(SWTException e){ |
|
546 |
//catch widget is disposed exception which may occurr if |
|
547 |
//dialog is closed but the runnable tries to update |
|
548 |
} |
|
543 | 549 |
} |
544 | 550 |
|
545 | 551 |
private void updateSelectedCdmServer() { |
Also available in: Unified diff
Catch widget is disposed exception when closing login dialog at startup