JAL-1337 plugin flag to prevent Jalview from quitting the VM
[jalview.git] / src / jalview / bin / Cache.java
index 5d26b85..43619f8 100755 (executable)
@@ -200,7 +200,15 @@ public class Cache
   static String propertiesFile;
 
   private static boolean propsAreReadOnly = false;
-
+  private static boolean plugin=false;
+  public static void setPlugin(boolean plugin)
+  {
+    Cache.plugin=plugin;
+  }
+  public static boolean isPlugin()
+  {
+    return plugin;
+  }
   public static void initLogger()
   {
     if (log != null)