Fix 10486 - fixing another bug broke this one - merge from 2.5 branch
authorchpeckha
Thu, 04 Mar 2010 14:11:26 -0600
changeset 1081 eb755d0b6c12
parent 1077 7bde62318913
child 1082 7a58b3441a5d
Fix 10486 - fixing another bug broke this one - merge from 2.5 branch
connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/RemoteConnectionsActivator.java
--- 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();
+				}
+			});
 		}	
 	}