From: tcofoegbu Date: Mon, 28 Mar 2016 13:13:25 +0000 (+0100) Subject: JAL-1668 removed redundant UI elements in PopupMenu class associated with the old... X-Git-Tag: Release_2_10_0~280 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=39d0e8bf8f541357c21ca322b939835b9f5e5561;p=jalview.git JAL-1668 removed redundant UI elements in PopupMenu class associated with the old structure selection mechanism --- diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index e86b2c5..7491aa1 100644 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -176,12 +176,6 @@ public class PopupMenu extends JPopupMenu JMenu pdbMenu = new JMenu(); - JMenuItem pdbFromFile = new JMenuItem(); - - JMenuItem enterPDB = new JMenuItem(); - - JMenuItem discoverPDB = new JMenuItem(); - JMenu outputMenu = new JMenu(); JMenu seqShowAnnotationsMenu = new JMenu(); @@ -1284,36 +1278,6 @@ public class PopupMenu extends JPopupMenu changeCase(e); } }); - pdbMenu.setText(MessageManager - .getString("label.associate_structure_with_sequence")); - pdbFromFile.setText(MessageManager.getString("label.from_file")); - pdbFromFile.addActionListener(new ActionListener() - { - @Override - public void actionPerformed(ActionEvent e) - { - pdbFromFile_actionPerformed(); - } - }); - - enterPDB.setText(MessageManager.getString("label.enter_pdb_id")); - enterPDB.addActionListener(new ActionListener() - { - @Override - public void actionPerformed(ActionEvent e) - { - enterPDB_actionPerformed(); - } - }); - discoverPDB.setText(MessageManager.getString("label.discover_pdb_ids")); - discoverPDB.addActionListener(new ActionListener() - { - @Override - public void actionPerformed(ActionEvent e) - { - discoverPDB_actionPerformed(); - } - }); outputMenu.setText(MessageManager.getString("label.out_to_textbox") + "..."); seqShowAnnotationsMenu.setText(MessageManager @@ -1483,13 +1447,10 @@ public class PopupMenu extends JPopupMenu editMenu.add(upperCase); editMenu.add(lowerCase); editMenu.add(toggle); - pdbMenu.add(pdbFromFile); // JBPNote: These shouldn't be added here - should appear in a generic // 'apply web service to this sequence menu' // pdbMenu.add(RNAFold); // pdbMenu.add(ContraFold); - pdbMenu.add(enterPDB); - pdbMenu.add(discoverPDB); jMenu1.add(groupName); jMenu1.add(colourMenu); jMenu1.add(showBoxes);