Package org.jrd.frontend.frame.main
Class DecompilationController
java.lang.Object
org.jrd.frontend.frame.main.DecompilationController
This class provides Action listeners and request handling for
the GUI.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
(package private) class
(package private) class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BytecodeDecompilerView
static final String
private boolean
private LoadingDialog
private final MainFrameView
private NewConnectionView
private NewFsVmView
private PluginConfigurationEditorView
private PluginManager
private VmInfo
private VmManager
-
Constructor Summary
ConstructorsConstructorDescriptionDecompilationController
(MainFrameView mainFrameView, Model model, boolean isVerbose) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
static String
bytesToBase64
(byte[] bytes) private void
changeVm
(ActionEvent event) private void
cleanup()
private void
clearOtherList
(JList<VmInfo> vmList) If selected list is remoteVmList clears localVmList and vice versa.
Effectively merging them into one.private void
private String
createFilter
(String text, int caretPosition) private void
private void
private AgentRequestAction
createRequest
(AgentRequestAction.RequestAction action, String... commands) static AgentRequestAction
createRequest
(VmInfo vmInfo, AgentRequestAction.RequestAction action, String... commands) static String
fileToBase64
(String path) static byte[]
fileToBytes
(String path) String[]
getVm()
private void
private void
private void
private void
loadClassBytecode
(String name) private void
Sends request for classes.void
removeOverrides
(String pattern) private void
removeVmDialog
(ActionEvent event) private void
showLoadingDialog
(ActionListener listener, String title) private void
showLoadingDialog
(String title) static String
static byte[]
(package private) String
submitRequest
(AgentRequestAction request) static String
submitRequest
(VmManager vmManager, AgentRequestAction request) private void
private boolean
warnOnOvveridesOfFsVm
(VmInfo selectedVm) static boolean
warnOnOvveridesOfFsVm
(VmInfo vmInfo, JFrame parent)
-
Field Details
-
mainFrameView
-
bytecodeDecompilerView
-
newConnectionDialog
-
newFsVmDialog
-
pluginConfigurationEditorView
-
pluginConfigurationEditorController
-
loadingDialog
-
vmManager
-
vmInfo
-
pluginManager
-
isVerbose
private boolean isVerbose -
CLASSES_NOPE
- See Also:
-
-
Constructor Details
-
DecompilationController
-
-
Method Details
-
createConfigurationEditor
private void createConfigurationEditor() -
createNewConnectionDialog
private void createNewConnectionDialog() -
createNewFsVMDialog
private void createNewFsVMDialog() -
removeVmDialog
-
warnOnOvveridesOfFsVm
-
warnOnOvveridesOfFsVm
-
updateVmLists
private void updateVmLists() -
changeVm
-
clearOtherList
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
-
showLoadingDialog
-
hideLoadingDialog
private void hideLoadingDialog() -
cleanup
private void cleanup() -
abortClassLoading
private void abortClassLoading() -
initClass
-
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
-
getVm
-
getOverrides
-
removeOverrides
-
fileToBase64
-
stdinToBase64
-
fileToBytes
- Throws:
IOException
-
stdinToBytes
- Throws:
IOException
-
bytesToBase64
-
haltAgent
private void haltAgent() -
createRequest
private AgentRequestAction createRequest(AgentRequestAction.RequestAction action, String... commands) -
createRequest
public static AgentRequestAction createRequest(VmInfo vmInfo, AgentRequestAction.RequestAction action, String... commands) -
submitRequest
-
submitRequest
-
createFilter
-