return flag indicating if annotations were actually deleted from alignment
[jalview.git] / src / jalview / datamodel / Alignment.java
index 536ccab..cec2abc 100755 (executable)
@@ -463,7 +463,7 @@ public class Alignment
   /* (non-Javadoc)
    * @see jalview.datamodel.AlignmentI#deleteAnnotation(jalview.datamodel.AlignmentAnnotation)
    */
-  public void deleteAnnotation(AlignmentAnnotation aa)
+  public boolean deleteAnnotation(AlignmentAnnotation aa)
   {
     int aSize = 1;
 
@@ -474,7 +474,7 @@ public class Alignment
 
     if (aSize < 1)
     {
-      return;
+      return false;
     }
 
     AlignmentAnnotation[] temp = new AlignmentAnnotation[aSize - 1];
@@ -500,6 +500,7 @@ public class Alignment
       if(aa.sequenceRef!=null)
         aa.sequenceRef.removeAlignmentAnnotation(aa);
     }
+    return swap;
   }
 
   /**