mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-15 05:02:00 +00:00
Added: #2477 Option to disable AS2 detection of uninitialized class fields
Added: AS2 detection of uninitialized class fields is cancellable and shows progress Changed: Icon of "Deobfuscation options" menu from pile of pills to medkit Fixed: Comments color highlighting
This commit is contained in:
@@ -66,6 +66,8 @@ public abstract class CancellableWorker<T> implements RunnableFuture<T> {
|
||||
private CancellableWorker parentWorker;
|
||||
|
||||
private boolean canceled = false;
|
||||
|
||||
private boolean userCancelled = false;
|
||||
|
||||
private List<Runnable> cancelListeners = new ArrayList<>();
|
||||
|
||||
@@ -188,6 +190,15 @@ public abstract class CancellableWorker<T> implements RunnableFuture<T> {
|
||||
THREAD_POOL.execute(this);
|
||||
}
|
||||
|
||||
public final boolean userCancel(boolean mayIterruptIfRunning) {
|
||||
userCancelled = true;
|
||||
return cancel(mayIterruptIfRunning);
|
||||
}
|
||||
|
||||
public boolean isUserCancelled() {
|
||||
return userCancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean cancel(boolean mayInterruptIfRunning) {
|
||||
canceled = true;
|
||||
|
||||
Reference in New Issue
Block a user