mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 09:20:47 +00:00
Added: AS1/2 - highlight variable definition and all its instances on cursor place
Fixed: AS1/2 - Incorrect DefineFunction2 parameter names when parameter name is empty
This commit is contained in:
@@ -115,6 +115,7 @@ import javax.swing.text.Highlighter;
|
||||
import javax.swing.text.JTextComponent;
|
||||
import javax.swing.text.Utilities;
|
||||
import javax.swing.tree.TreePath;
|
||||
import jsyntaxpane.DefaultSyntaxKit;
|
||||
import jsyntaxpane.SyntaxDocument;
|
||||
import jsyntaxpane.Token;
|
||||
import jsyntaxpane.TokenType;
|
||||
@@ -639,6 +640,7 @@ public class ActionPanel extends JPanel implements SearchListener<ScriptSearchRe
|
||||
|
||||
editor.setShowMarkers(true);
|
||||
decompiledEditor.setShowMarkers(Configuration.decompile.get());
|
||||
decompiledEditor.setSwf(asm.getSwf());
|
||||
lastASM = asm;
|
||||
lastCode = actions;
|
||||
lastDecompiled = decompiledText;
|
||||
@@ -1030,6 +1032,8 @@ public class ActionPanel extends JPanel implements SearchListener<ScriptSearchRe
|
||||
editor.setFont(Configuration.getSourceFont());
|
||||
decompiledEditor.setFont(Configuration.getSourceFont());
|
||||
decompiledEditor.changeContentType("text/actionscript");
|
||||
DefaultSyntaxKit kit = (DefaultSyntaxKit) decompiledEditor.getEditorKit();
|
||||
kit.installComponent(decompiledEditor, ActionVariableMarker.class.getName());
|
||||
|
||||
editor.addCaretListener(new CaretListener() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user