Added: AS2 - Information about need of decompiling all scripts to detect uninitialized class fields

Fixed: #2338 AS decompiling threads got stuck after cancelling / timeout
CancellableWorker refactoring
This commit is contained in:
Jindra Petřík
2024-10-04 19:45:16 +02:00
parent 9793ab0cec
commit a4a9ba4c6b
59 changed files with 495 additions and 204 deletions

View File

@@ -24,6 +24,8 @@ import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.util.Timer;
import java.util.TimerTask;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.BoxLayout;
import javax.swing.Icon;
import javax.swing.JButton;
@@ -65,7 +67,7 @@ public class MainFrameStatusPanel extends JPanel {
public MainFrameStatusPanel(MainPanel mainPanel) {
this.mainPanel = mainPanel;
createStatusPanel();
}
}
private void createStatusPanel() {
JPanel statusLeftPanel = new JPanel();
@@ -77,10 +79,11 @@ public class MainFrameStatusPanel extends JPanel {
cancelButton.setBorderPainted(false);
cancelButton.setOpaque(false);
cancelButton.addActionListener((ActionEvent e) -> {
if (currentWorker != null) {
currentWorker.cancel(true);
CancellableWorker w = currentWorker;
if (w != null) {
w.cancel(true);
}
});
});
statusLeftPanel.add(loadingPanel);
statusLeftPanel.add(cancelButton);
statusLeftPanel.add(statusLabel);