JAL-1925 update source version in license
[jalview.git] / src / jalview / gui / AssociatePdbFileWithSeq.java
index d53ddc8..f4bae70 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
- * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2)
+ * Copyright (C) 2015 The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -50,8 +50,8 @@ public class AssociatePdbFileWithSeq
     PDBEntry entry = new PDBEntry();
     MCview.PDBfile pdbfile = null;
     pdbfile = StructureSelectionManager.getStructureSelectionManager(ssmp)
-            .setMapping(false, new SequenceI[]
-            { sequence }, null, choice, protocol);
+            .setMapping(false, new SequenceI[] { sequence }, null, choice,
+                    protocol);
     if (pdbfile == null)
     {
       // stacktrace already thrown so just return
@@ -80,6 +80,7 @@ public class AssociatePdbFileWithSeq
     {
       entry.setId(pdbfile.id);
     }
+    entry.setType(PDBEntry.Type.FILE);
 
     if (pdbfile != null)
     {