JAL-1230 proxy method for synchronising internal AlignmentI state in response to...
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 23 Jun 2013 18:03:53 +0000 (19:03 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 23 Jun 2013 18:03:53 +0000 (19:03 +0100)
src/jalview/datamodel/Alignment.java
src/jalview/datamodel/AlignmentI.java

index 1553710..7b545c4 100755 (executable)
@@ -1479,5 +1479,13 @@ public class Alignment implements AlignmentI
 
     }
   }
-
+ @Override
+ public void validateAnnotation(AlignmentAnnotation alignmentAnnotation)
+ {
+   alignmentAnnotation.validateRangeAndDisplay();
+   if (isNucleotide() && alignmentAnnotation.isValidStruc())
+   {
+     hasRNAStructure = true;
+   }
+ }
 }
index 06026ef..64dcabb 100755 (executable)
@@ -469,4 +469,10 @@ public interface AlignmentI extends AnnotatedCollectionI
    */
   public void moveSelectedSequencesByOne(SequenceGroup sg,
           Map<SequenceI, SequenceCollectionI> map, boolean up);
+
+  /**
+   * validate annotation after an edit and update any alignment state flags accordingly
+   * @param alignmentAnnotation
+   */
+  public void validateAnnotation(AlignmentAnnotation alignmentAnnotation);
 }