JAL-976 clean out associated annotation
authorjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 8 Jul 2012 14:20:32 +0000 (15:20 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 8 Jul 2012 14:20:32 +0000 (15:20 +0100)
src/jalview/ws/jws2/AAConsClient.java

index bf7be5d..d1bf303 100644 (file)
@@ -176,6 +176,10 @@ public class AAConsClient extends JabawsAlignCalcWorker
 
   public static void removeAAConsAnnotation(AlignmentPanel alignPanel)
   {
+    for (AlignmentAnnotation aa: alignPanel.getAlignment().findAnnotation(SequenceAnnotationWSClient.AAConsCalcId))
+    {
+      alignPanel.getAlignment().deleteAnnotation(aa);
+    }
     // List<AlignmentAnnotation>
     // ourannots=alignPanel.getAlignment().findAnnotation(Screen3D.)
     // TODO Auto-generated method stub