Plugin Cleanup

This commit is contained in:
Konloch 2021-07-06 15:38:37 -07:00
parent 14b3b04661
commit 9e5b4527ed

View file

@ -28,16 +28,21 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer;
* @author Konloch * @author Konloch
*/ */
public abstract class Plugin extends Thread { public abstract class Plugin extends Thread
{
@Override @Override
public void run() { public void run()
{
BytecodeViewer.viewer.updateBusyStatus(true); 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."); BytecodeViewer.showMessage("First open a class, jar, zip, apk or dex file.");
return; return;
} }
execute(BytecodeViewer.getLoadedClasses()); execute(BytecodeViewer.getLoadedClasses());
} catch (Exception e) { } catch (Exception e) {
new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e); new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);