/* (non-Javadoc)
* @see jalview.datamodel.AlignmentI#deleteAnnotation(jalview.datamodel.AlignmentAnnotation)
*/
- public void deleteAnnotation(AlignmentAnnotation aa)
+ public boolean deleteAnnotation(AlignmentAnnotation aa)
{
int aSize = 1;
if (aSize < 1)
{
- return;
+ return false;
}
AlignmentAnnotation[] temp = new AlignmentAnnotation[aSize - 1];
if(aa.sequenceRef!=null)
aa.sequenceRef.removeAlignmentAnnotation(aa);
}
+ return swap;
}
/**
* vector. Otherwise, it will do nothing.
*
* @param aa the annotation to delete
+ * @return true if annotation was deleted from this alignment.
*/
- public void deleteAnnotation(AlignmentAnnotation aa);
+ public boolean deleteAnnotation(AlignmentAnnotation aa);
/**
* Get the annotation associated with this alignment