Comment out test lines
authoramwaterhouse <Andrew Waterhouse>
Fri, 25 Nov 2005 17:57:37 +0000 (17:57 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 25 Nov 2005 17:57:37 +0000 (17:57 +0000)
src/jalview/gui/PopupMenu.java

index ed1e759..6fd69f5 100755 (executable)
@@ -111,17 +111,14 @@ public class PopupMenu extends JPopupMenu
         }\r
 \r
 \r
-        if ((seq != null))\r
-          //  && seq.getDatasetSequence().getPDBId() != null)\r
+        if ((seq != null)\r
+            && seq.getDatasetSequence().getPDBId() != null)\r
         {\r
-          //java.util.Enumeration e = seq.getDatasetSequence().getPDBId().elements();\r
-        //  while(e.hasMoreElements())\r
+          java.util.Enumeration e = seq.getDatasetSequence().getPDBId().elements();\r
+          while(e.hasMoreElements())\r
           {\r
-            final PDBEntry pdb = new PDBEntry();\r
-            pdb.setId("pdb");\r
+            final PDBEntry pdb = (PDBEntry)e.nextElement();\r
 \r
-\r
-              //  (PDBEntry)e.nextElement();\r
             JMenuItem pdbMenuItem = new JMenuItem();\r
             pdbMenuItem.setText("View PDB entry: "+pdb.getId());\r
             pdbMenuItem.addActionListener(new java.awt.event.ActionListener()\r