Attached Devices ("+amountOfDevices+") : | "+devicesString+" |
";
String forwardedPorts = "";
for (String port : this.getForwardedPorts()) {
diff --git a/src/main/java/com/lucaoonk/Virt_Commander/Backend/Processors/Remote/RemoteVMListActionListener.java b/src/main/java/com/lucaoonk/Virt_Commander/Backend/Processors/Remote/RemoteVMListActionListener.java
new file mode 100644
index 0000000..d7bd264
--- /dev/null
+++ b/src/main/java/com/lucaoonk/Virt_Commander/Backend/Processors/Remote/RemoteVMListActionListener.java
@@ -0,0 +1,30 @@
+package com.lucaoonk.Virt_Commander.Backend.Processors.Remote;
+
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JDialog;
+
+import com.lucaoonk.Virt_Commander.Backend.Objects.Context;
+
+public class RemoteVMListActionListener implements ActionListener{
+
+ private Context context;
+ private JDialog dialog;
+
+ public RemoteVMListActionListener(Context context, JDialog dialog) {
+ this.context = context;
+ this.dialog = dialog;
+ }
+
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ this.dialog.dispose();
+ context.local = true;
+ context.refresh();
+
+ }
+
+
+
+}
\ No newline at end of file
diff --git a/src/main/java/com/lucaoonk/Virt_Commander/Backend/Processors/Remote/RemoteVMListProcessor.java b/src/main/java/com/lucaoonk/Virt_Commander/Backend/Processors/Remote/RemoteVMListProcessor.java
index 3cc3df9..bdd5fc2 100644
--- a/src/main/java/com/lucaoonk/Virt_Commander/Backend/Processors/Remote/RemoteVMListProcessor.java
+++ b/src/main/java/com/lucaoonk/Virt_Commander/Backend/Processors/Remote/RemoteVMListProcessor.java
@@ -1,9 +1,12 @@
package com.lucaoonk.Virt_Commander.Backend.Processors.Remote;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
+import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
@@ -28,12 +31,12 @@ public RemoteVMListProcessor(Context context){
}
public void runCommand() throws IOException{
- this.vmList = getVMdomainList(context.remoteAddress);
+ this.vmList = getVMdomainList(context.remoteAddress, context);
context.updateVMList(vmList);
}
- public static ArrayList