Translations
This commit is contained in:
parent
556c0ef1c8
commit
29c816c13e
2 changed files with 8 additions and 5 deletions
|
@ -10,10 +10,13 @@ import the.bytecode.club.bytecodeviewer.gui.components.SearchableRSyntaxTextArea
|
|||
import the.bytecode.club.bytecodeviewer.gui.hexviewer.JHexEditor;
|
||||
import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ClassViewer;
|
||||
import the.bytecode.club.bytecodeviewer.gui.util.PaneUpdaterThread;
|
||||
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.EDITABLE;
|
||||
|
||||
/***************************************************************************
|
||||
* Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite *
|
||||
* Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com *
|
||||
|
@ -93,11 +96,10 @@ public class ResourceViewProcessing extends PaneUpdaterThread
|
|||
updateUpdaterTextArea = new SearchableRSyntaxTextArea();
|
||||
|
||||
Configuration.rstaTheme.apply(updateUpdaterTextArea);
|
||||
resourceViewPanel.textArea = updateUpdaterTextArea;
|
||||
|
||||
resourceViewPanel.panel.add(updateUpdaterTextArea.getScrollPane());
|
||||
resourceViewPanel.panel.add(updateUpdaterTextArea.getTitleHeader(), BorderLayout.NORTH);
|
||||
|
||||
resourceViewPanel.textArea = updateUpdaterTextArea;
|
||||
resourceViewPanel.textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);
|
||||
resourceViewPanel.textArea.setCodeFoldingEnabled(true);
|
||||
resourceViewPanel.textArea.setAntiAliasingEnabled(true);
|
||||
|
@ -110,9 +112,9 @@ public class ResourceViewProcessing extends PaneUpdaterThread
|
|||
else if(isPanelEditable && decompiler == Decompiler.KRAKATAU_DISASSEMBLER)
|
||||
resourceViewPanel.compileMode = Compiler.KRAKATAU_ASSEMBLER;
|
||||
|
||||
resourceViewPanel.textArea.getTitleHeader().setText(decompiler.getDecompilerName() + " - Editable: " + isPanelEditable);
|
||||
resourceViewPanel.textArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN,
|
||||
(int) BytecodeViewer.viewer.fontSpinner.getValue()));
|
||||
String editable = isPanelEditable ? " - " + EDITABLE : "";
|
||||
resourceViewPanel.textArea.getTitleHeader().setText(decompiler.getDecompilerName() + editable);
|
||||
resourceViewPanel.textArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int) BytecodeViewer.viewer.fontSpinner.getValue()));
|
||||
|
||||
waitingFor = false;
|
||||
});
|
||||
|
|
|
@ -12,6 +12,7 @@ import java.util.HashSet;
|
|||
|
||||
public enum TranslatedStrings
|
||||
{
|
||||
EDITABLE("Editable"),
|
||||
JAVA("Java"),
|
||||
PROCYON("Procyon"),
|
||||
CFR("CFR"),
|
||||
|
|
Loading…
Reference in a new issue