ColourSchemeKey now in documentation
[jalview.git] / src / jalview / gui / Desktop.java
index b0f000e..464ec59 100755 (executable)
@@ -214,7 +214,6 @@ public class Desktop extends jalview.jbgui.GDesktop
                                       +"Fasta, MSF, Clustal, BLC, PIR, MSP or PFAM",\r
                                       "Error parsing text", JOptionPane.WARNING_MESSAGE);\r
 \r
-\r
    }\r
  }\r
 \r
@@ -230,12 +229,6 @@ public class Desktop extends jalview.jbgui.GDesktop
  }\r
 \r
 \r
- protected void colourIndexMenuItem_actionPerformed(ActionEvent e)\r
- {\r
-   ColourKey colourKey = new ColourKey(null);\r
-   addInternalFrame(colourKey, "Colour scheme key", 400, 320);\r
- }\r
-\r
 \r
  public void aboutMenuItem_actionPerformed(ActionEvent e)\r
  {\r
@@ -250,10 +243,22 @@ public class Desktop extends jalview.jbgui.GDesktop
 \r
  public void documentationMenuItem_actionPerformed(ActionEvent e)\r
  {\r
-   try{\r
-     jalview.util.BrowserLauncher.openURL("http://www.jalview.org/documentation.html");\r
-   }catch(Exception ex){}\r
+   try\r
+   {\r
+      ClassLoader cl = jalview.gui.Desktop.class.getClassLoader();\r
+      java.net.URL url = javax.help.HelpSet.findHelpSet(cl,"help/help");\r
+      javax.help.HelpSet hs = new javax.help.HelpSet(cl,url);\r
+\r
+      javax.help.HelpBroker hb = hs.createHelpBroker();\r
+      hb.setLocation(new Point(200, 50));\r
+      hb.setSize(new Dimension(800,700));\r
+      hb.setCurrentID("home");\r
+      hb.setDisplayed(true);\r
+   }\r
+   catch (Exception ex)\r
+   {\r
+     ex.printStackTrace();\r
+   }\r
  }\r
 \r
-\r
 }\r