Package org.jrd.frontend.MainFrame
Class BytecodeDecompilerView
- java.lang.Object
-
- org.jrd.frontend.MainFrame.BytecodeDecompilerView
-
public class BytecodeDecompilerView extends Object
Class that creates GUI for attached VM.
-
-
Constructor Summary
Constructors Constructor Description BytecodeDecompilerView()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JPanelgetBytecodeDecompilerPanel()Constructor creates the graphics and adds the action listeners.DecompilerWrapperInformationgetSelecteddecompilerWrapperInformation()voidhandleError(String msg)Creates a warning table in case of error.voidrefreshComboBox(List<DecompilerWrapperInformation> wrappers)voidreloadClassList(String[] classesToReload)Sets the unfiltered class list array and invokes an update.voidreloadTextField(String name, String decompiledClass, byte[] source)Sets the decompiled code into JTextAreavoidsetBytesActionListener(ActionListener listener)voidsetClassesActionListener(ActionListener listener)voidsetRewriteActionListener(org.jrd.frontend.MainFrame.VmDecompilerInformationController.ClassRewriter worker)static StringstyleTooltip()
-
-
-
Method Detail
-
getBytecodeDecompilerPanel
public JPanel getBytecodeDecompilerPanel()
Constructor creates the graphics and adds the action listeners.- Returns:
- BytecodeDecompilerPanel
-
styleTooltip
public static String styleTooltip()
-
reloadClassList
public void reloadClassList(String[] classesToReload)
Sets the unfiltered class list array and invokes an update.- Parameters:
classesToReload- String[] classesToReload.
-
reloadTextField
public void reloadTextField(String name, String decompiledClass, byte[] source)
Sets the decompiled code into JTextArea- Parameters:
decompiledClass- String of source code of decompiler class
-
setClassesActionListener
public void setClassesActionListener(ActionListener listener)
-
setBytesActionListener
public void setBytesActionListener(ActionListener listener)
-
setRewriteActionListener
public void setRewriteActionListener(org.jrd.frontend.MainFrame.VmDecompilerInformationController.ClassRewriter worker)
-
handleError
public void handleError(String msg)
Creates a warning table in case of error.- Parameters:
msg- message
-
refreshComboBox
public void refreshComboBox(List<DecompilerWrapperInformation> wrappers)
-
getSelecteddecompilerWrapperInformation
public DecompilerWrapperInformation getSelecteddecompilerWrapperInformation()
-
-