File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/club/bytecode/the/jda/gui/fileviewer Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 44import club .bytecode .the .jda .api .ExceptionUI ;
55import club .bytecode .the .jda .decompilers .JDADecompiler ;
66import club .bytecode .the .jda .decompilers .bytecode .BytecodeDecompiler ;
7+ import club .bytecode .the .jda .decompilers .filter .DecompileFilter ;
78import club .bytecode .the .jda .settings .Settings ;
89import com .strobel .annotations .Nullable ;
910import org .fife .ui .rsyntaxtextarea .RSyntaxTextArea ;
@@ -62,7 +63,11 @@ public void run() {
6263 panelArea .setText (stripUndisplayableChars (decompileResult ));
6364 panelArea .setCaretPosition (0 );
6465 panelArea .setEditable (viewer .isPaneEditable (paneId ));
65- scrollPane .setColumnHeaderView (new JLabel (decompiler .getName () + " Decompiler - Editable: " + panelArea .isEditable ()));
66+ StringBuilder topLabelText = new StringBuilder (decompiler .getName ());
67+ for (DecompileFilter filter : decompiler .getSettings ().getEnabledFilters ()) {
68+ topLabelText .append (" + " ).append (filter .getName ());
69+ }
70+ scrollPane .setColumnHeaderView (new JLabel (topLabelText .toString ()));
6671 panelArea .setFont (new Font (Settings .FONT_FAMILY .getString (), Settings .FONT_OPTIONS .getInt (), Settings .FONT_SIZE .getInt ()));
6772
6873 SwingUtilities .invokeLater (() -> target .add (scrollPane ));
You can’t perform that action at this time.
0 commit comments