Copy dataset annotations for paste(this)
authoramwaterhouse <Andrew Waterhouse>
Wed, 8 Feb 2006 15:23:31 +0000 (15:23 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 8 Feb 2006 15:23:31 +0000 (15:23 +0000)
src/jalview/gui/AlignFrame.java

index de2d3d1..c193ab3 100755 (executable)
@@ -760,8 +760,16 @@ public class AlignFrame
             viewport.alignment.getDataset().addSequence(ds);\r
           }\r
           else\r
+          {\r
             newseq.setDatasetSequence(sequences[i].getDatasetSequence());\r
-\r
+            if(sequences[i].getDatasetSequence().getAnnotation()!=null)\r
+            {\r
+              for(int aa=0; aa<sequences[i].getDatasetSequence().getAnnotation().length; aa++)\r
+              {\r
+                viewport.alignment.addAnnotation(sequences[i].getDatasetSequence().getAnnotation()[aa]);\r
+              }\r
+            }\r
+          }\r
         }\r
         viewport.setEndSeq(viewport.alignment.getHeight());\r
         viewport.alignment.getWidth();\r