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 JPanel
getBytecodeDecompilerPanel()
Constructor creates the graphics and adds the action listeners.DecompilerWrapperInformation
getSelecteddecompilerWrapperInformation()
void
handleError(String msg)
Creates a warning table in case of error.void
refreshComboBox(List<DecompilerWrapperInformation> wrappers)
void
reloadClassList(String[] classesToReload)
Sets the unfiltered class list array and invokes an update.void
reloadTextField(String name, String decompiledClass, byte[] source)
Sets the decompiled code into JTextAreavoid
setBytesActionListener(ActionListener listener)
void
setClassesActionListener(ActionListener listener)
void
setRewriteActionListener(org.jrd.frontend.MainFrame.VmDecompilerInformationController.ClassRewriter worker)
static String
styleTooltip()
-
-
-
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()
-
-