JAL-3056 open Help web page instead of internal (targeted) help link
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 14 Mar 2019 12:40:43 +0000 (12:40 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 14 Mar 2019 12:40:43 +0000 (12:40 +0000)
src/jalview/gui/Help.java

index 810fc92..651d265 100644 (file)
  */
 package jalview.gui;
 
+import jalview.util.BrowserLauncher;
+import jalview.util.Platform;
+
 import java.awt.Point;
+import java.io.IOException;
 import java.net.URL;
 
 import javax.help.BadIDException;
@@ -74,6 +78,15 @@ public class Help
    */
   public static void showHelpWindow(HelpId id) throws HelpSetException
   {
+       if (Platform.isJS())
+       {
+         try 
+         {
+               BrowserLauncher.openURL("http://www.jalview.org/help.html");
+         } catch (IOException e) {}
+           return;
+       }
+       
     ClassLoader cl = Desktop.class.getClassLoader();
     URL url = HelpSet.findHelpSet(cl, "help/help"); // $NON-NLS-$
     HelpSet hs = new HelpSet(cl, url);