Fixed #2077 Switch detection problems producing §§goto

This commit is contained in:
Jindra Petřík
2023-10-01 18:21:38 +02:00
parent 0a52175bc3
commit 49c8251e4d
11 changed files with 359 additions and 13 deletions
@@ -47,6 +47,7 @@ import com.jpexs.decompiler.flash.tags.ABCContainerTag;
import com.jpexs.decompiler.graph.DottedChain;
import com.jpexs.decompiler.graph.TypeItem;
import com.jpexs.helpers.CancellableWorker;
import com.jpexs.helpers.Helper;
import com.jpexs.helpers.Reference;
import java.awt.Point;
import java.awt.event.MouseEvent;
@@ -881,11 +882,15 @@ public class DecompiledEditorPane extends DebuggableEditorPane implements CaretL
protected Void doInBackground() throws Exception {
if (decompileNeeded) {
//long timeBefore = System.currentTimeMillis();
View.execInEventDispatch(() -> {
setText("// " + AppStrings.translate("work.decompiling") + "...");
});
HighlightedText htext = SWF.getCached(scriptLeaf);
//long timeAfter = System.currentTimeMillis();
//long delta = timeAfter - timeBefore;
//System.err.println("Finished in " + Helper.formatTimeSec(delta));
View.execInEventDispatch(() -> {
setSourceCompleted(scriptLeaf, htext);
});