X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=blobdiff_plain;f=src%2Fjalview%2Fbin%2FJalview.java;h=29d48b2c835728d2990b8ec0e9488dc6fcd22723;hp=474c7075e25b22131eff84603055e4272a54a5f2;hb=26b115b0a77d521da92a06572d9b7819c2d0d49a;hpb=2ff87ed8f1a344303ed46c9fda7d11fd4d469dc7 diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 474c707..29d48b2 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -102,21 +102,22 @@ public class Jalview public static AlignFrame currentAlignFrame; - /** - * Answers true if Jalview is running as Javascript, else false. The value is - * set at compile time. - * - * @return - */ - public static boolean isJS() - { - return /** @j2sNative true || */ - false; - } +//BH 2019.01.25 moved to Platform +///** +// * Answers true if Jalview is running as Javascript, else false. The value is +// * set at compile time. +// * +// * @return +// */ +//public static boolean isJS() +//{ +// return /** @j2sNative true || */ +// false; +//} static { - if (!isJS()) + if (!Platform.isJS()) { // BH 2018 // grab all the rights we can the JVM Policy.setPolicy(new Policy() @@ -250,7 +251,7 @@ public class Jalview void doMain(String[] args) { - if (!isJS()) + if (!Platform.isJS()) { System.setSecurityManager(null); } @@ -590,7 +591,7 @@ public class Jalview } System.out.println("CMD [-open " + file + "] executed successfully!"); - if (!isJS() && !file.startsWith("http://")) + if (!Platform.isJS() && !file.startsWith("http://")) { if (!(new File(file)).exists()) {