From 9e5b4527ed54cbb32444d1044315f125256d4373 Mon Sep 17 00:00:00 2001 From: Konloch Date: Tue, 6 Jul 2021 15:38:37 -0700 Subject: [PATCH] Plugin Cleanup --- .../bytecode/club/bytecodeviewer/api/Plugin.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/Plugin.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/Plugin.java index 04e6fdf9..136c853e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/Plugin.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/Plugin.java @@ -28,16 +28,21 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; * @author Konloch */ -public abstract class Plugin extends Thread { - +public abstract class Plugin extends Thread +{ @Override - public void run() { + public void run() + { BytecodeViewer.viewer.updateBusyStatus(true); - try { - if (BytecodeViewer.getLoadedClasses().isEmpty()) { + + try + { + if (BytecodeViewer.getLoadedClasses().isEmpty()) + { BytecodeViewer.showMessage("First open a class, jar, zip, apk or dex file."); return; } + execute(BytecodeViewer.getLoadedClasses()); } catch (Exception e) { new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);