-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump to v0.5.1 improved remote connectionmanager
- Loading branch information
Showing
17 changed files
with
581 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ public class Device { | |
public String target; | ||
|
||
|
||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/lucaoonk/Virt_Commander/Backend/Objects/RemoteConnection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.lucaoonk.Virt_Commander.Backend.Objects; | ||
|
||
public class RemoteConnection { | ||
|
||
public String name; | ||
public String address; | ||
public Boolean favorite; | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
src/main/java/com/lucaoonk/Virt_Commander/Backend/Objects/RemoteConnectionComboItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.lucaoonk.Virt_Commander.Backend.Objects; | ||
|
||
public class RemoteConnectionComboItem { | ||
|
||
private String key; | ||
private RemoteConnection value; | ||
|
||
public RemoteConnectionComboItem(){ | ||
|
||
} | ||
|
||
public RemoteConnectionComboItem(RemoteConnection connection) | ||
{ | ||
this.key = connection.name + " | "+connection.address; | ||
this.value = connection; | ||
} | ||
|
||
@Override | ||
public String toString() | ||
{ | ||
return key; | ||
} | ||
|
||
public String getKey() | ||
{ | ||
return key; | ||
} | ||
|
||
public RemoteConnection getValue() | ||
{ | ||
return value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ava/com/lucaoonk/Virt_Commander/Backend/Processors/Remote/RemoteVMListActionListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
|
||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...ain/java/com/lucaoonk/Virt_Commander/Backend/Processors/Remote/SwitchToLocalListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.lucaoonk.Virt_Commander.Backend.Processors.Remote; | ||
|
||
import java.awt.event.ActionEvent; | ||
import java.awt.event.ActionListener; | ||
|
||
public class SwitchToLocalListener implements ActionListener{ | ||
|
||
@Override | ||
public void actionPerformed(ActionEvent e) { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.