From cf0b929ab9a59b79c5a51f2998e642c5c2dbeda9 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 25 Nov 2005 17:57:37 +0000 Subject: [PATCH] Comment out test lines --- src/jalview/gui/PopupMenu.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index ed1e759..6fd69f5 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -111,17 +111,14 @@ public class PopupMenu extends JPopupMenu } - if ((seq != null)) - // && seq.getDatasetSequence().getPDBId() != null) + if ((seq != null) + && seq.getDatasetSequence().getPDBId() != null) { - //java.util.Enumeration e = seq.getDatasetSequence().getPDBId().elements(); - // while(e.hasMoreElements()) + java.util.Enumeration e = seq.getDatasetSequence().getPDBId().elements(); + while(e.hasMoreElements()) { - final PDBEntry pdb = new PDBEntry(); - pdb.setId("pdb"); + final PDBEntry pdb = (PDBEntry)e.nextElement(); - - // (PDBEntry)e.nextElement(); JMenuItem pdbMenuItem = new JMenuItem(); pdbMenuItem.setText("View PDB entry: "+pdb.getId()); pdbMenuItem.addActionListener(new java.awt.event.ActionListener() -- 1.7.10.2