connectivity/com.nokia.carbide.remoteConnections.tests/src/com/nokia/carbide/remoteconnections/tests/extensions/POUConnectionDialog.java
equal
deleted
inserted
replaced
24 import org.eclipse.swt.widgets.*; |
24 import org.eclipse.swt.widgets.*; |
25 |
25 |
26 public class POUConnectionDialog extends TrayDialog { |
26 public class POUConnectionDialog extends TrayDialog { |
27 |
27 |
28 private final IService service; |
28 private final IService service; |
29 private IClientServiceSiteUI clientSiteUI; |
29 private IClientServiceSiteUI2 clientSiteUI; |
30 private IConnection connection; |
30 private String connection; |
31 /** |
31 /** |
32 * Create the dialog |
32 * Create the dialog |
33 */ |
33 */ |
34 public POUConnectionDialog(IService service, IConnection initialConnection) { |
34 public POUConnectionDialog(IService service, String initialConnection) { |
35 super((Shell) null); |
35 super((Shell) null); |
36 this.service = service; |
36 this.service = service; |
37 this.connection = initialConnection; |
37 this.connection = initialConnection; |
38 clientSiteUI = RemoteConnectionsActivator.getConnectionsManager().getClientSiteUI(service); |
38 clientSiteUI = RemoteConnectionsActivator.getConnectionsManager().getClientSiteUI2(service); |
39 |
39 |
40 setShellStyle(getShellStyle() | SWT.RESIZE); |
40 setShellStyle(getShellStyle() | SWT.RESIZE); |
41 } |
41 } |
42 |
42 |
43 protected void configureShell(Shell newShell) { |
43 protected void configureShell(Shell newShell) { |
56 if (connection != null) |
56 if (connection != null) |
57 clientSiteUI.selectConnection(connection); |
57 clientSiteUI.selectConnection(connection); |
58 return container; |
58 return container; |
59 } |
59 } |
60 |
60 |
61 public IConnection getSelectedConnection() { |
61 public String getSelectedConnection() { |
62 return clientSiteUI.getSelectedConnection(); |
62 return clientSiteUI.getSelectedConnection(); |
63 } |
63 } |
64 |
64 |
65 |
65 |
66 } |
66 } |