Package org.jrd.frontend.MainFrame
Class BytecodeDecompilerView
- java.lang.Object
-
- org.jrd.frontend.MainFrame.BytecodeDecompilerView
-
public class BytecodeDecompilerView extends java.lang.ObjectClass that creates GUI for attached VM.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JPanelBytecodeDecompilerPanelprivate org.fife.ui.rtextarea.RTextScrollPanebytecodeScrollPaneprivate org.fife.ui.rsyntaxtextarea.RSyntaxTextAreabytecodeSyntaxTextAreaprivate java.awt.event.ActionListenerbytesActionListenerprivate java.lang.String[]classesprivate java.awt.event.ActionListenerclassesActionListenerprivate javax.swing.JPanelclassesPanelprivate javax.swing.JTextFieldclassesSortFieldprivate javax.swing.JList<java.lang.String>filteredClassesJlistprivate javax.swing.JPanelleftMainPanelprivate javax.swing.JScrollPaneleftScrollPanelprivate java.awt.event.ActionListenerrewriteActionListenerprivate javax.swing.JPanelrightMainPanelprivate javax.swing.JTextFieldsearchCodeFieldprivate javax.swing.JSplitPanesplitPaneprivate booleansplitPaneFirstResizeprivate javax.swing.JComboBoxtopComboBox
-
Constructor Summary
Constructors Constructor Description BytecodeDecompilerView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JPanelgetBytecodeDecompilerPanel()Constructor creates the graphics and adds the action listeners.DecompilerWrapperInformationgetSelecteddecompilerWrapperInformation()voidhandleError(java.lang.String msg)Creates a warning table in case of error.voidrefreshComboBox(java.util.List<DecompilerWrapperInformation> wrappers)voidreloadClassList(java.lang.String[] classesToReload)Sets the unfiltered class list array and invokes an update.voidreloadTextField(java.lang.String decompiledClass)Sets the decompiled code into JTextAreaprivate voidsearchCode()Search string in decompiled codevoidsetBytesActionListener(java.awt.event.ActionListener listener)voidsetClassesActionListener(java.awt.event.ActionListener listener)voidsetRewriteActionListener(java.awt.event.ActionListener rewriteActionListener)private voidupdateClassList()
-
-
-
Field Detail
-
BytecodeDecompilerPanel
private javax.swing.JPanel BytecodeDecompilerPanel
-
splitPane
private javax.swing.JSplitPane splitPane
-
leftMainPanel
private javax.swing.JPanel leftMainPanel
-
classesSortField
private javax.swing.JTextField classesSortField
-
searchCodeField
private javax.swing.JTextField searchCodeField
-
topComboBox
private javax.swing.JComboBox topComboBox
-
classesPanel
private javax.swing.JPanel classesPanel
-
rightMainPanel
private javax.swing.JPanel rightMainPanel
-
leftScrollPanel
private javax.swing.JScrollPane leftScrollPanel
-
filteredClassesJlist
private javax.swing.JList<java.lang.String> filteredClassesJlist
-
bytecodeScrollPane
private org.fife.ui.rtextarea.RTextScrollPane bytecodeScrollPane
-
bytecodeSyntaxTextArea
private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea bytecodeSyntaxTextArea
-
bytesActionListener
private java.awt.event.ActionListener bytesActionListener
-
classesActionListener
private java.awt.event.ActionListener classesActionListener
-
rewriteActionListener
private java.awt.event.ActionListener rewriteActionListener
-
classes
private java.lang.String[] classes
-
splitPaneFirstResize
private boolean splitPaneFirstResize
-
-
Method Detail
-
getBytecodeDecompilerPanel
public javax.swing.JPanel getBytecodeDecompilerPanel()
Constructor creates the graphics and adds the action listeners.- Returns:
- BytecodeDecompilerPanel
-
updateClassList
private void updateClassList()
-
reloadClassList
public void reloadClassList(java.lang.String[] classesToReload)
Sets the unfiltered class list array and invokes an update.- Parameters:
classesToReload- String[] classesToReload.
-
reloadTextField
public void reloadTextField(java.lang.String decompiledClass)
Sets the decompiled code into JTextArea- Parameters:
decompiledClass- String of source code of decompiler class
-
setClassesActionListener
public void setClassesActionListener(java.awt.event.ActionListener listener)
-
setBytesActionListener
public void setBytesActionListener(java.awt.event.ActionListener listener)
-
setRewriteActionListener
public void setRewriteActionListener(java.awt.event.ActionListener rewriteActionListener)
-
handleError
public void handleError(java.lang.String msg)
Creates a warning table in case of error.- Parameters:
msg- message
-
refreshComboBox
public void refreshComboBox(java.util.List<DecompilerWrapperInformation> wrappers)
-
getSelecteddecompilerWrapperInformation
public DecompilerWrapperInformation getSelecteddecompilerWrapperInformation()
-
searchCode
private void searchCode()
Search string in decompiled code
-
-