Plugin Cleanup
This commit is contained in:
parent
14b3b04661
commit
9e5b4527ed
1 changed files with 10 additions and 5 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue