JAL-1140 - IO classes should only raise generic IOExceptions
[jalview.git] / src / jalview / gui / AssociatePdbFileWithSeq.java
index 22c891d..979a2e2 100644 (file)
@@ -39,29 +39,19 @@ import jalview.datamodel.SequenceI;
 public class AssociatePdbFileWithSeq
 {
 
-/**
- * assocate the given PDB file with 
- * @param choice
- * @param sequence
- * @throws SAXException 
- * @throws ParserConfigurationException 
- * @throws ExceptionFileFormatOrSyntax 
- * @throws ExceptionLoadingFailed 
- * @throws ExceptionPermissionDenied 
- * @throws InterruptedException 
- * @throws ExceptionUnmatchedClosingParentheses 
- */
-  public PDBEntry associatePdbWithSeq(String choice, String protocol, SequenceI sequence, boolean prompt) throws ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+  /**
+   * assocate the given PDB file with
+   * 
+   * @param choice
+   * @param sequence
+   */
+  public PDBEntry associatePdbWithSeq(String choice, String protocol,
+          SequenceI sequence, boolean prompt)
   {
     PDBEntry entry = new PDBEntry();
     try
     {
-               System.out.println("This is a annotation PDB");
-       
-       
-      MCview.PDBfile pdbfile = new MCview.PDBfile(choice,
-              protocol);
+      MCview.PDBfile pdbfile = new MCview.PDBfile(choice, protocol);
 
       if (pdbfile.id == null)
       {
@@ -87,7 +77,7 @@ public class AssociatePdbFileWithSeq
       {
         entry.setId(pdbfile.id);
       }
-       
+
     } catch (java.io.IOException ex)
     {
       ex.printStackTrace();
@@ -96,7 +86,5 @@ public class AssociatePdbFileWithSeq
     entry.setFile(choice);
     sequence.getDatasetSequence().addPDBId(entry);
     return entry;
-    
   }
-
 }