Merge branch 'hotfix/JAL-1521' into Release_2_8_2_Branch
[jalview.git] / src / MCview / PDBfile.java
index 302f3b2..7f5c427 100755 (executable)
@@ -28,6 +28,7 @@ import java.awt.*;
 import jalview.analysis.AlignSeq;
 import jalview.datamodel.*;
 import jalview.io.FileParse;
+import jalview.util.MessageManager;
 
 public class PDBfile extends jalview.io.AlignFile
 {
@@ -240,7 +241,9 @@ public class PDBfile extends jalview.io.AlignFile
     } catch (OutOfMemoryError er)
     {
       System.out.println("OUT OF MEMORY LOADING PDB FILE");
-      throw new IOException("Out of memory loading PDB File");
+      throw new IOException(
+              MessageManager
+                      .getString("exception.outofmemory_loading_pdb_file"));
     } catch (NumberFormatException ex)
     {
       if (line != null)
@@ -304,6 +307,14 @@ public class PDBfile extends jalview.io.AlignFile
     ;
   }
 
+  /**
+   * matches ochains against al and populates seqs with the best match between
+   * each ochain and the set in al
+   * 
+   * @param ochains
+   * @param al
+   * @param dnaOrProtein
+   */
   private void replaceMatchingSeqsWith(ArrayList<SequenceI> ochains,
           AlignmentI al, String dnaOrProtein)
   {