X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fgui%2FAssociatePdbFileWithSeq.java;h=f67d6da23f3b3edb09b81962647f506d15e1df9f;hb=9876fdccf311378e690c1f9e18db52675d427b89;hp=a854bdfc87f360e3c181e12241cbf58eb3046613;hpb=9c37999eb4b461a5c7a94e10ac39583c1c29200a;p=jalview.git diff --git a/src/jalview/gui/AssociatePdbFileWithSeq.java b/src/jalview/gui/AssociatePdbFileWithSeq.java index a854bdf..f67d6da 100644 --- a/src/jalview/gui/AssociatePdbFileWithSeq.java +++ b/src/jalview/gui/AssociatePdbFileWithSeq.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9) + * 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) {