AS3 - fixed not refreshing class list after rename identifiers

This commit is contained in:
Jindra Pet��k
2013-05-02 19:26:38 +02:00
parent 1db47a8c55
commit fb69ba2a8a
@@ -38,7 +38,7 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL
private List<Highlighting> classHighlights = new ArrayList<Highlighting>(); private List<Highlighting> classHighlights = new ArrayList<Highlighting>();
private Highlighting currentMethodHighlight; private Highlighting currentMethodHighlight;
private ABC abc; private ABC abc;
private int scriptIndex; private int scriptIndex=-1;
public int lastTraitIndex = 0; public int lastTraitIndex = 0;
private boolean ignoreCarret = false; private boolean ignoreCarret = false;
private boolean reset = false; private boolean reset = false;
@@ -315,7 +315,9 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL
if (bufferedClasses.containsKey(scriptIndex)) { if (bufferedClasses.containsKey(scriptIndex)) {
bufferedClasses.remove(scriptIndex); bufferedClasses.remove(scriptIndex);
} }
setScript(scriptIndex, abc, abcList); if((scriptIndex!=-1)&&(abc!=null)){
setScript(scriptIndex, abc, abcList);
}
setNoTrait(); setNoTrait();
setClassIndex(ci); setClassIndex(ci);
} }