JAL-1565 loading a concise file causes insertions to be automatically hidden in desktop
authorJim Procter <jprocter@dundee.ac.uk>
Mon, 9 Mar 2015 12:51:46 +0000 (12:51 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Mon, 9 Mar 2015 12:51:46 +0000 (12:51 +0000)
src/jalview/gui/AlignFrame.java

index 2133f50..7e451aa 100644 (file)
@@ -5213,6 +5213,11 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
                     file, protocol);
             new 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