AS3: comment without semicolon, clickable text while settext

This commit is contained in:
Jindra Petk
2013-02-09 14:41:41 +01:00
parent f30d8abe04
commit e6c024aade
2 changed files with 11 additions and 1 deletions

View File

@@ -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;
}
}

View File

@@ -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() {