Package org.jrd.frontend.MainFrame
Class VmDecompilerInformationController
- java.lang.Object
-
- org.jrd.frontend.MainFrame.VmDecompilerInformationController
-
public class VmDecompilerInformationController extends java.lang.Object
This class provides Action listeners and result proccreateRequestessing for the GUI.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
VmDecompilerInformationController.ClassRewriter
class
VmDecompilerInformationController.vmArrayList<T>
-
Field Summary
Fields Modifier and Type Field Description private BytecodeDecompilerView
bytecodeDecompilerView
static int
CLASS_BODY
static int
CLASS_NAME
static java.lang.String
CLASSES_NOPE
private static LatestPaths
lastLoaded
private LoadingDialog
loadingDialog
private MainFrameView
mainFrameView
private NewConnectionController
newConnectionController
private NewConnectionView
newConnectionDialog
private NewFsVmController
newFsVmController
private NewFsVmView
newFsVmDialog
private PluginConfigurationEditorController
pluginConfigurationEditorController
private PluginConfigurationEditorView
pluginConfigurationEditorView
private PluginManager
pluginManager
private VmInfo
vmInfo
private VmManager
vmManager
-
Constructor Summary
Constructors Constructor Description VmDecompilerInformationController(MainFrameView mainFrameView, Model model)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
abortAndCleanup()
static java.lang.String
bytesToBase64(byte[] bytes)
private void
changeVm(java.awt.event.ActionEvent event)
private void
clearOtherList(javax.swing.JList<VmInfo> vmList)
If selected list is remoteVmList clears localVmList and vice versa.
Effectively merging them into one.private void
createConfigurationEditor()
private void
createNewConnectionDialog()
private void
createNewFsVMDialog()
private AgentRequestAction
createRequest(AgentRequestAction.RequestAction action, java.lang.String... commands)
static AgentRequestAction
createRequest(VmInfo vmInfo, AgentRequestAction.RequestAction action, java.lang.String... commands)
static java.lang.String
fileToBase64(java.lang.String path)
static byte[]
fileToBytes(java.lang.String path)
private void
haltAgent()
private void
hideLoadingDialog()
private void
loadClassBytecode(java.lang.String name)
private void
loadClassNames()
Sends request for classes.private void
showLoadingDialog()
static java.lang.String
stdinToBase64()
static byte[]
stdinToBytes()
private java.lang.String
submitRequest(AgentRequestAction request)
static java.lang.String
submitRequest(VmManager vmManager, AgentRequestAction request)
private void
updateVmLists()
-
-
-
Field Detail
-
mainFrameView
private final MainFrameView mainFrameView
-
bytecodeDecompilerView
private final BytecodeDecompilerView bytecodeDecompilerView
-
newConnectionDialog
private NewConnectionView newConnectionDialog
-
newFsVmDialog
private NewFsVmView newFsVmDialog
-
pluginConfigurationEditorView
private PluginConfigurationEditorView pluginConfigurationEditorView
-
pluginConfigurationEditorController
private PluginConfigurationEditorController pluginConfigurationEditorController
-
loadingDialog
private LoadingDialog loadingDialog
-
newConnectionController
private NewConnectionController newConnectionController
-
newFsVmController
private NewFsVmController newFsVmController
-
vmManager
private VmManager vmManager
-
vmInfo
private VmInfo vmInfo
-
pluginManager
private PluginManager pluginManager
-
CLASS_NAME
public static final int CLASS_NAME
- See Also:
- Constant Field Values
-
CLASS_BODY
public static final int CLASS_BODY
- See Also:
- Constant Field Values
-
CLASSES_NOPE
public static final java.lang.String CLASSES_NOPE
- See Also:
- Constant Field Values
-
lastLoaded
private static LatestPaths lastLoaded
-
-
Constructor Detail
-
VmDecompilerInformationController
public VmDecompilerInformationController(MainFrameView mainFrameView, Model model)
-
-
Method Detail
-
createConfigurationEditor
private void createConfigurationEditor()
-
createNewConnectionDialog
private void createNewConnectionDialog()
-
createNewFsVMDialog
private void createNewFsVMDialog()
-
updateVmLists
private void updateVmLists()
-
changeVm
private void changeVm(java.awt.event.ActionEvent event)
-
clearOtherList
private void clearOtherList(javax.swing.JList<VmInfo> vmList)
If selected list is remoteVmList clears localVmList and vice versa.
Effectively merging them into one.- Parameters:
vmList
- list that doesn't get cleared containing the VM that user wants to attach.
-
showLoadingDialog
private void showLoadingDialog()
-
hideLoadingDialog
private void hideLoadingDialog()
-
abortAndCleanup
private void abortAndCleanup()
-
loadClassNames
private void loadClassNames()
Sends request for classes. If "ok" response is received updates classes list. If "error" response is received shows an error dialog.
-
loadClassBytecode
private void loadClassBytecode(java.lang.String name)
-
fileToBase64
public static java.lang.String fileToBase64(java.lang.String path)
-
stdinToBase64
public static java.lang.String stdinToBase64()
-
fileToBytes
public static byte[] fileToBytes(java.lang.String path) throws java.io.IOException
- Throws:
java.io.IOException
-
stdinToBytes
public static byte[] stdinToBytes() throws java.io.IOException
- Throws:
java.io.IOException
-
bytesToBase64
public static java.lang.String bytesToBase64(byte[] bytes)
-
haltAgent
private void haltAgent()
-
createRequest
private AgentRequestAction createRequest(AgentRequestAction.RequestAction action, java.lang.String... commands)
-
createRequest
public static AgentRequestAction createRequest(VmInfo vmInfo, AgentRequestAction.RequestAction action, java.lang.String... commands)
-
submitRequest
private java.lang.String submitRequest(AgentRequestAction request)
-
submitRequest
public static java.lang.String submitRequest(VmManager vmManager, AgentRequestAction request)
-
-