# HG changeset patch # User Chad Peckham # Date 1267731022 21600 # Node ID 8915e650957cbbe1f77c5b6e7d6eeb20c7a69c86 # Parent 27b0f877c86eb44e37674893bc19ff49fba452d3 Fix 10486 - fixing another bug broke this one diff -r 27b0f877c86e -r 8915e650957c 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 13:16:46 2010 -0600 +++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/RemoteConnectionsActivator.java Thu Mar 04 13:30:22 2010 -0600 @@ -144,15 +144,19 @@ } if (!agentToStatusMap.isEmpty()) { - DeviceDiscoveryPrequisiteErrorDialog dlg = new DeviceDiscoveryPrequisiteErrorDialog(WorkbenchUtils.getSafeShell()); - for (Entry 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 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(); + } + }); } }