}\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