From: amwaterhouse Date: Fri, 25 Nov 2005 17:57:37 +0000 (+0000) Subject: Comment out test lines X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cf0b929ab9a59b79c5a51f2998e642c5c2dbeda9;p=jalview.git Comment out test lines --- 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()