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);