Class DecompilationController

java.lang.Object
org.jrd.frontend.frame.main.DecompilationController

public class DecompilationController extends Object
This class provides Action listeners and request handling for the GUI.
  • Field Details

  • Constructor Details

    • DecompilationController

      public DecompilationController(MainFrameView mainFrameView, Model model, boolean isVerbose)
  • Method Details

    • createConfigurationEditor

      private void createConfigurationEditor()
    • createNewConnectionDialog

      private void createNewConnectionDialog()
    • createNewFsVMDialog

      private void createNewFsVMDialog()
    • removeVmDialog

      private void removeVmDialog(ActionEvent event)
    • warnOnOvveridesOfFsVm

      private boolean warnOnOvveridesOfFsVm(VmInfo selectedVm)
    • warnOnOvveridesOfFsVm

      public static boolean warnOnOvveridesOfFsVm(VmInfo vmInfo, JFrame parent)
    • updateVmLists

      private void updateVmLists()
    • changeVm

      private void changeVm(ActionEvent event)
    • clearOtherList

      private void clearOtherList(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(String title)
    • showLoadingDialog

      private void showLoadingDialog(ActionListener listener, String title)
    • hideLoadingDialog

      private void hideLoadingDialog()
    • cleanup

      private void cleanup()
    • abortClassLoading

      private void abortClassLoading()
    • initClass

      private void initClass(String fqn)
    • 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(String name)
    • getVm

      public String getVm()
    • getOverrides

      public String[] getOverrides()
    • removeOverrides

      public void removeOverrides(String pattern)
    • fileToBase64

      public static String fileToBase64(String path)
    • stdinToBase64

      public static String stdinToBase64()
    • fileToBytes

      public static byte[] fileToBytes(String path) throws IOException
      Throws:
      IOException
    • stdinToBytes

      public static byte[] stdinToBytes() throws IOException
      Throws:
      IOException
    • bytesToBase64

      public static String bytesToBase64(byte[] bytes)
    • 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

      String submitRequest(AgentRequestAction request)
    • submitRequest

      public static String submitRequest(VmManager vmManager, AgentRequestAction request)
    • createFilter

      private String createFilter(String text, int caretPosition)