Added some more JUnit tests
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / control / dialogs / NewConnectionDialog.java
index dd7edec72d49b3cfab5e3b726e7125ef78424835..d415a5bdf433251f5f0080145a8b9619104fd775 100644 (file)
@@ -103,12 +103,8 @@ public class NewConnectionDialog extends Dialog implements INewConnectionDialog
     // ------------------------------------------------------------------------
     // Constructors
     // ------------------------------------------------------------------------
-    public NewConnectionDialog(Shell shell, ITraceControlComponent parent, IHost[] hosts) {
+    public NewConnectionDialog(Shell shell) {
         super(shell);
-        fParent = parent;
-        if (hosts != null) {
-            fExistingHosts = Arrays.copyOf(hosts, hosts.length);
-        }
         setShellStyle(SWT.RESIZE);
     }
 
@@ -132,6 +128,26 @@ public class NewConnectionDialog extends Dialog implements INewConnectionDialog
     public String getHostName() {
         return fHostName;
     }
+    
+    /*
+     * (non-Javadoc)
+     * @see org.eclipse.linuxtools.lttng.ui.views.control.dialogs.INewConnectionDialog#setTraceControlParent(org.eclipse.linuxtools.lttng.ui.views.control.model.ITraceControlComponent)
+     */
+    @Override
+    public void setTraceControlParent(ITraceControlComponent parent) {
+        fParent = parent;
+    }
+    
+    /*
+     * (non-Javadoc)
+     * @see org.eclipse.linuxtools.lttng.ui.views.control.dialogs.INewConnectionDialog#setHosts(org.eclipse.rse.core.model.IHost[])
+     */
+    @Override
+    public void setHosts(IHost[] hosts) {
+        if (hosts != null) {
+            fExistingHosts = Arrays.copyOf(hosts, hosts.length);
+        }
+    }
 
     // ------------------------------------------------------------------------
     // Operations
This page took 0.023904 seconds and 5 git commands to generate.