--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/RemoteConnectionsActivator.java Thu Mar 04 11:33:34 2010 -0600
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/RemoteConnectionsActivator.java Thu Mar 04 14:11:26 2010 -0600
@@ -144,15 +144,19 @@
}
if (!agentToStatusMap.isEmpty()) {
- DeviceDiscoveryPrequisiteErrorDialog dlg = new DeviceDiscoveryPrequisiteErrorDialog(WorkbenchUtils.getSafeShell());
- for (Entry<IDeviceDiscoveryAgent, IPrerequisiteStatus> entry : agentToStatusMap.entrySet()) {
- IDeviceDiscoveryAgent agent = entry.getKey();
- IPrerequisiteStatus status = entry.getValue();
- dlg.addAgentData(agent.getDisplayName(), status.getErrorText(), status.getURL());
- }
- dlg.open();
- if (dlg.isDontAskAgainChecked())
- storeIgnoreAgentLoadErrorsFlag();
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
+ DeviceDiscoveryPrequisiteErrorDialog dlg = new DeviceDiscoveryPrequisiteErrorDialog(WorkbenchUtils.getSafeShell());
+ for (Entry<IDeviceDiscoveryAgent, IPrerequisiteStatus> entry : agentToStatusMap.entrySet()) {
+ IDeviceDiscoveryAgent agent = entry.getKey();
+ IPrerequisiteStatus status = entry.getValue();
+ dlg.addAgentData(agent.getDisplayName(), status.getErrorText(), status.getURL());
+ }
+ dlg.open();
+ if (dlg.isDontAskAgainChecked())
+ storeIgnoreAgentLoadErrorsFlag();
+ }
+ });
}
}