From 39d0e8bf8f541357c21ca322b939835b9f5e5561 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Mon, 28 Mar 2016 14:13:25 +0100 Subject: [PATCH] JAL-1668 removed redundant UI elements in PopupMenu class associated with the old structure selection mechanism --- src/jalview/gui/PopupMenu.java | 39 --------------------------------------- 1 file changed, 39 deletions(-) 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); -- 1.7.10.2