JAL-2476 ability to drag and drop score matrix file to desktop, simplify
[jalview.git] / src / jalview / io / ScoreMatrixFile.java
index 3a7ff4f..d28c511 100644 (file)
@@ -53,14 +53,28 @@ public class ScoreMatrixFile extends AlignFile implements
   boolean hasGuideColumn;
 
   /**
-   * Constructor
+   * Constructor given a file reader. The file is parsed immediately and if
+   * successful, the score model registered with the ScoreModels singleton.
    * 
    * @param source
    * @throws IOException
    */
   public ScoreMatrixFile(FileParse source) throws IOException
   {
-    super(false, source);
+    super(true, source);
+  }
+
+  /**
+   * Constructor given a file reader. The data is optionally parsed immediately.
+   * 
+   * @param parseImmediately
+   * @param source
+   * @throws IOException
+   */
+  public ScoreMatrixFile(boolean parseImmediately, FileParse source)
+          throws IOException
+  {
+    super(parseImmediately, source);
   }
 
   @Override