Merge branch 'features/JAL-1565_jpred4' into develop
authorJim Procter <jprocter@dundee.ac.uk>
Mon, 9 Mar 2015 12:54:38 +0000 (12:54 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Mon, 9 Mar 2015 12:54:38 +0000 (12:54 +0000)
1  2 
src/jalview/gui/AlignFrame.java

@@@ -5263,9 -5211,13 +5263,14 @@@ public class AlignFrame extends GAlignF
            {
              jalview.io.JPredFile predictions = new jalview.io.JPredFile(
                      file, protocol);
 -            new JnetAnnotationMaker().add_annotation(predictions,
 +            new JnetAnnotationMaker();
 +            JnetAnnotationMaker.add_annotation(predictions,
                      viewport.getAlignment(), 0, false);
+             SequenceI repseq = viewport.getAlignment().getSequenceAt(0);
+             viewport.getAlignment().setSeqrep(repseq);
+             ColumnSelection cs = new ColumnSelection();
+             cs.hideInsertionsFor(repseq);
+             viewport.setColumnSelection(cs);
              isAnnotation = true;
            }
            else