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 BytecodeDecompilerViewstatic final Stringprivate booleanprivate LoadingDialogprivate final MainFrameViewprivate NewConnectionViewprivate NewFsVmViewprivate PluginConfigurationEditorViewprivate PluginManagerprivate VmInfoprivate VmManager -
Constructor Summary
ConstructorsConstructorDescriptionDecompilationController(MainFrameView mainFrameView, Model model, boolean isVerbose) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidstatic StringbytesToBase64(byte[] bytes) private voidchangeVm(ActionEvent event) private voidcleanup()private voidclearOtherList(JList<VmInfo> vmList) If selected list is remoteVmList clears localVmList and vice versa.
Effectively merging them into one.private voidprivate StringcreateFilter(String text, int caretPosition) private voidprivate voidprivate AgentRequestActioncreateRequest(AgentRequestAction.RequestAction action, String... commands) static AgentRequestActioncreateRequest(VmInfo vmInfo, AgentRequestAction.RequestAction action, String... commands) static StringfileToBase64(String path) static byte[]fileToBytes(String path) String[]getVm()private voidprivate voidprivate voidprivate voidloadClassBytecode(String name) private voidSends request for classes.voidremoveOverrides(String pattern) private voidremoveVmDialog(ActionEvent event) private voidshowLoadingDialog(ActionListener listener, String title) private voidshowLoadingDialog(String title) static Stringstatic byte[](package private) StringsubmitRequest(AgentRequestAction request) static StringsubmitRequest(VmManager vmManager, AgentRequestAction request) private voidprivate booleanwarnOnOvveridesOfFsVm(VmInfo selectedVm) static booleanwarnOnOvveridesOfFsVm(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
-