X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FBrowserLauncher.java;h=8119daa8edbefac5d9b24f6437d378ef00d7e06a;hb=9745565701f82e6a975ac71254bcf07822d6d9dd;hp=f47ca23c27030c060435cb20a922e7485cd05a38;hpb=070cda5fcdc40af294bf8267f9c32104ce9bfd82;p=jalview.git diff --git a/src/jalview/util/BrowserLauncher.java b/src/jalview/util/BrowserLauncher.java index f47ca23..8119daa 100755 --- a/src/jalview/util/BrowserLauncher.java +++ b/src/jalview/util/BrowserLauncher.java @@ -236,9 +236,11 @@ public class BrowserLauncher loadedWithoutErrors = true; + if (!Platform.isJS()) /** + * Java only * - * @j2sNative + * @j2sIgnore * */ { @@ -334,8 +336,11 @@ public class BrowserLauncher private static boolean loadClasses() { + if (!Platform.isJS()) /** - * @j2sNative + * Java only + * + * @j2sIgnore * */ { @@ -538,8 +543,11 @@ public class BrowserLauncher */ private static Object locateBrowser() { + if (!Platform.isJS()) /** - * @j2sNative + * Java only + * + * @j2sIgnore * */ { @@ -735,14 +743,16 @@ public class BrowserLauncher public static void openURL(String url) throws IOException { - if (Platform.openURL(url)) + if (Platform.isJS()) { + Platform.openURL(url); return; } + else /** * Java only * - * @j2sNative + * @j2sIgnore */ {