From ffa3ea1a2a3e3b0fd8da65fdb619ac2815fe5af7 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 7 Dec 2012 14:18:55 +0000 Subject: [PATCH] Exception signature change (will be overwritten by commit 2a7ae5) --- src/jalview/gui/PopupMenu.java | 48 +++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index aa50dcb..f19a2c0 100644 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -1062,30 +1062,38 @@ public class PopupMenu extends JPopupMenu { try { pdbFromFile_actionPerformed(); - } catch (ExceptionFileFormatOrSyntax e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (ParserConfigurationException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (SAXException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (ExceptionPermissionDenied e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (ExceptionLoadingFailed e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (InterruptedException e1) { - // TODO Auto-generated catch block - e1.printStackTrace(); - } catch (ExceptionUnmatchedClosingParentheses e1) { + } catch (Exception e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } }); +// RNAFold.setText("From RNA Fold with predict2D"); +// RNAFold.addActionListener(new ActionListener() +// { +// public void actionPerformed(ActionEvent e) +// { +// try { +// RNAFold_actionPerformed(); +// } catch (Exception e1) { +// // TODO Auto-generated catch block +// e1.printStackTrace(); +// } +// } +// }); +// ContraFold.setText("From Contra Fold with predict2D"); +// ContraFold.addActionListener(new ActionListener() +// { +// public void actionPerformed(ActionEvent e) +// { +// try { +// ContraFold_actionPerformed(); +// } catch (Exception e1) { +// // TODO Auto-generated catch block +// e1.printStackTrace(); +// } +// } +// }); enterPDB.setText("Enter PDB Id"); enterPDB.addActionListener(new ActionListener() { @@ -1970,7 +1978,7 @@ public class PopupMenu extends JPopupMenu oal = null; } - public void pdbFromFile_actionPerformed() throws IOException + public void pdbFromFile_actionPerformed() throws Exception { jalview.io.JalviewFileChooser chooser = new jalview.io.JalviewFileChooser( jalview.bin.Cache.getProperty("LAST_DIRECTORY")); -- 1.7.10.2