--- a/debuggercdi/com.nokia.carbide.trk.support/src/com/nokia/carbide/trk/support/status/ConnectionStatusReconciler.java Tue Jan 12 09:39:44 2010 -0600
+++ b/debuggercdi/com.nokia.carbide.trk.support/src/com/nokia/carbide/trk/support/status/ConnectionStatusReconciler.java Wed Jan 13 09:44:43 2010 -0600
@@ -105,6 +105,8 @@
if (!isDynamic(connection))
return;
+ reconcileAsDefault(connection);
+
handledConnections.add((IConnection2) connection);
for (IConnectedService service : manager.getConnectedServices(connection)) {
if (service instanceof TRKConnectedService ||
@@ -115,6 +117,12 @@
reconcileConnection((IConnection2) connection);
}
+ private void reconcileAsDefault(IConnection connection) {
+ // USB connections become default when added
+ if (USBConnectionType.ID.equals(connection.getConnectionType().getIdentifier()))
+ manager.setDefaultConnection(connection);
+ }
+
private void reconcileConnection(IConnection2 connection) {
boolean isSysTRK = false;
EStatus trkStatus = EStatus.UNKNOWN;