# HG changeset patch # User Ed Swartz # Date 1262188774 21600 # Node ID 477762bc3b317d869ecfcc8b3cb12654043fdca8 # Parent a39d0ba41f812be72b8f9609b528846a7ff73a63 Wire up default connections in the core for #10418. diff -r a39d0ba41f81 -r 477762bc3b31 connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java --- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java Tue Dec 29 15:47:09 2009 -0600 +++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java Wed Dec 30 09:59:34 2009 -0600 @@ -518,7 +518,12 @@ public IConnection ensureConnection(String id, IService service) throws CoreException { Check.checkArg(service); - IConnection connection = findConnectionById(id); + IConnection connection; + if (DEFAULT_CONNECTION_ID.equals(id)) { + connection = getDefaultConnection(); + } else { + connection = findConnectionById(id); + } if (!isCompatibleConnection(connection, service)) { // TODO ask user to connect a device or cancel throw new CoreException(