debuggercdi/com.nokia.carbide.trk.support/src/com/nokia/carbide/trk/support/service/ConnectedServiceFactory.java
equal
deleted
inserted
replaced
34 */ |
34 */ |
35 public IConnectedService createConnectedService(IService service, IConnection connection) { |
35 public IConnectedService createConnectedService(IService service, IConnection connection) { |
36 if (service instanceof TracingService && |
36 if (service instanceof TracingService && |
37 isCompatibleConnection(getCompatibleTracingConnectionTypeIds(), connection)) { |
37 isCompatibleConnection(getCompatibleTracingConnectionTypeIds(), connection)) { |
38 if (HostOS.IS_UNIX) |
38 if (HostOS.IS_UNIX) |
39 return null; // TODO: not ported |
39 return new RemoteConnectedService(service); // TODO: not ported |
40 return new TracingConnectedService(service, (AbstractSynchronizedConnection) connection); |
40 return new TracingConnectedService(service, (AbstractSynchronizedConnection) connection); |
41 } |
41 } |
42 else if (service instanceof TRKService && |
42 else if (service instanceof TRKService && |
43 isCompatibleConnection(getCompatibleTRKConnectionTypeIds(), connection)) { |
43 isCompatibleConnection(getCompatibleTRKConnectionTypeIds(), connection)) { |
44 if (HostOS.IS_UNIX) |
44 if (HostOS.IS_UNIX) |
45 return null; // TODO: not ported |
45 return new RemoteConnectedService(service); // TODO: not ported |
46 return new TRKConnectedService(service, (AbstractSynchronizedConnection) connection); |
46 return new TRKConnectedService(service, (AbstractSynchronizedConnection) connection); |
47 } |
47 } |
48 |
48 |
49 return null; |
49 return null; |
50 } |
50 } |