*/
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;
import javax.help.HelpSet;
import javax.help.HelpSetException;
+import jalview.util.BrowserLauncher;
+import jalview.util.Platform;
+
/**
* Utility class to show the help documentation window
*
private static final String HELP_PAGE_ROOT = "http://www.jalview.org/help/";
/**
- * Defines selected help targets with links to inbuilt (Java) help page target,
- * and externally hosted help page. Will need to be maintained manually if help
- * pages are reorganised in future.
+ * Defines selected help targets with links to inbuilt (Java) help page
+ * target, and externally hosted help page. Will need to be maintained
+ * manually if help pages are reorganised in future.
*/
public enum HelpId
{
- Home("home", "help.html"), SequenceFeatureSettings("seqfeatures.settings", "html/features/featuresettings.html"),
- StructureViewer("viewingpdbs", "html/features/viewingpdbs.html"), PdbFts("pdbfts", "html/features/pdbsequencefetcher.html#pdbfts"),
- UniprotFts("uniprotfts", "html/features/uniprotsequencefetcher.html#uniprotfts");
+ Home("home", "help.html"),
+ SequenceFeatureSettings("seqfeatures.settings",
+ "html/features/featuresettings.html"),
+ StructureViewer("viewingpdbs", "html/features/viewingpdbs.html"),
+ PdbFts("pdbfts", "html/features/pdbsequencefetcher.html#pdbfts"),
+ UniprotFts("uniprotfts",
+ "html/features/uniprotsequencefetcher.html#uniprotfts");
private String id;
-
+
private String path;
private HelpId(String hepLoc, String htmlPath)
{
if (Platform.isJS())
{
+ /*
try
{
- BrowserLauncher.openURL(HELP_PAGE_ROOT + id.getPath());
+ */
+ BrowserLauncher.openURL(HELP_PAGE_ROOT + id.getPath());
+ /*
} catch (IOException e)
{
}
+ */
}
else
/**
hb.setCurrentID(id.getId());
} catch (BadIDException bad)
{
- System.out.println("Bad help link: " + id.getId()
+ jalview.bin.Console.outPrintln("Bad help link: " + id.getId()
+ ": must match a target in help.jhm");
throw bad;
}