mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-18 18:12:10 +00:00
AS3: comment without semicolon, clickable text while settext
This commit is contained in:
@@ -20,5 +20,12 @@ public class CommentTreeItem extends TreeItem {
|
||||
public String toString(ConstantPool constants, HashMap<Integer, String> localRegNames, List<String> fullyQualifiedNames) {
|
||||
return "//"+comment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean needsSemicolon() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -121,6 +121,9 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL
|
||||
}
|
||||
|
||||
public void caretUpdate(CaretEvent e) {
|
||||
if(abc==null){
|
||||
return;
|
||||
}
|
||||
if (ignoreCarret) {
|
||||
return;
|
||||
}
|
||||
@@ -281,10 +284,10 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL
|
||||
methodHighlights = bc.methodHighlights;
|
||||
classHighlights = bc.classHighlights;
|
||||
}
|
||||
setText(hilightedCode);
|
||||
this.abc = abc;
|
||||
this.abcList = abcList;
|
||||
this.script = script;
|
||||
setText(hilightedCode);
|
||||
}
|
||||
|
||||
public void reloadClass() {
|
||||
|
||||
Reference in New Issue
Block a user