Search in sources :

Example 1 with DecompileTask

use of jadx.gui.jobs.DecompileTask in project jadx by skylot.

the class MainWindow method waitDecompileTask.

public void waitDecompileTask() {
    synchronized (DECOMPILER_TASK_SYNC) {
        if (cacheObject.getIndexService().isComplete()) {
            return;
        }
        try {
            DecompileTask decompileTask = new DecompileTask(this, wrapper);
            backgroundExecutor.executeAndWait(decompileTask);
            IndexTask indexTask = new IndexTask(this, wrapper);
            backgroundExecutor.executeAndWait(indexTask);
            processDecompilationResults(decompileTask.getResult(), indexTask.getResult());
        } catch (Exception e) {
            LOG.error("Decompile task execution failed", e);
        }
    }
}
Also used : DecompileTask(jadx.gui.jobs.DecompileTask) IndexTask(jadx.gui.jobs.IndexTask) HeadlessException(java.awt.HeadlessException)

Aggregations

DecompileTask (jadx.gui.jobs.DecompileTask)1 IndexTask (jadx.gui.jobs.IndexTask)1 HeadlessException (java.awt.HeadlessException)1