Hide Create New JS Plugin If No JS Engine On Classpath

Due to the way the global variable is being created - this may introduce some visual startup delay - will need to profile with JS engines on the classpath
This commit is contained in:
Konloch 2024-09-29 08:18:35 -06:00
parent 95da665548
commit 5e4d411b04

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -39,6 +39,7 @@ import the.bytecode.club.bytecodeviewer.obfuscators.rename.RenameMethods;
import the.bytecode.club.bytecodeviewer.plugin.PluginManager;
import the.bytecode.club.bytecodeviewer.plugin.PluginTemplate;
import the.bytecode.club.bytecodeviewer.plugin.preinstalled.*;
import the.bytecode.club.bytecodeviewer.plugin.strategies.JavascriptPluginLaunchStrategy;
import the.bytecode.club.bytecodeviewer.resources.ExternalResources;
import the.bytecode.club.bytecodeviewer.resources.IconResources;
import the.bytecode.club.bytecodeviewer.resources.ResourceContainer;
@ -676,7 +677,10 @@ public class MainViewerGUI extends JFrame
pluginsMainMenu.add(recentPluginsSecondaryMenu);
pluginsMainMenu.add(new JSeparator());
pluginsMainMenu.add(newJavaPlugin);
pluginsMainMenu.add(newJavascriptPlugin);
if(JavascriptPluginLaunchStrategy.IS_JS_ENGINE_IN_CLASSPATH)
pluginsMainMenu.add(newJavascriptPlugin);
pluginsMainMenu.add(new JSeparator()); //android specific plugins first
pluginsMainMenu.add(viewAPKAndroidPermissions);
pluginsMainMenu.add(new JSeparator());