mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 00:40:47 +00:00
throw interrupted exception when Thread.isInterrupted() => timed out threads will abort
This commit is contained in:
@@ -1873,7 +1873,7 @@ public class MainFrame extends AppRibbonFrame implements ActionListener, TreeSel
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void renameIdentifier(String identifier) {
|
||||
public void renameIdentifier(String identifier) throws InterruptedException {
|
||||
String oldName = identifier;
|
||||
String newName = View.showInputDialog(translate("rename.enternew"), oldName);
|
||||
if (newName != null) {
|
||||
@@ -2602,7 +2602,11 @@ public class MainFrame extends AppRibbonFrame implements ActionListener, TreeSel
|
||||
@Override
|
||||
public void run() {
|
||||
Main.startWork(translate("work.renaming") + "...");
|
||||
renameIdentifier(identifier);
|
||||
try {
|
||||
renameIdentifier(identifier);
|
||||
} catch (InterruptedException ex) {
|
||||
Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
Main.stopWork();
|
||||
}
|
||||
}).start();
|
||||
|
||||
Reference in New Issue
Block a user