JAL-2526 zapCursor() renamed sequenceChanged()
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 1 Jun 2017 15:11:45 +0000 (16:11 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 1 Jun 2017 15:11:45 +0000 (16:11 +0100)
src/jalview/commands/EditCommand.java
src/jalview/datamodel/Sequence.java
src/jalview/datamodel/SequenceI.java

index 0a8dc7d..9eaeb7a 100644 (file)
@@ -798,7 +798,7 @@ public class EditCommand implements CommandI
       AlignmentAnnotation[] tmp;
       for (int s = 0; s < command.seqs.length; s++)
       {
-        command.seqs[s].zapCursor();
+        command.seqs[s].sequenceChanged();
 
         if (modifyVisibility)
         {
index 7ecb07a..6b460e2 100755 (executable)
@@ -1774,7 +1774,7 @@ public class Sequence extends ASequence implements SequenceI
    * token that has to match the one presented by the cursor
    */
   @Override
-  public void zapCursor()
+  public void sequenceChanged()
   {
     changeCount++;
   }
index 0f78bdb..18f0948 100755 (executable)
@@ -522,7 +522,9 @@ public interface SequenceI extends ASequenceI
   List<SequenceFeature> findFeatures(int from, int to, String... types);
 
   /**
-   * Invalidate any cursors on the sequence (e.g. after an edit)
+   * Method to call to indicate that the sequence (characters or alignment/gaps)
+   * has been modified. Provided to allow any cursors on residue/column
+   * positions to be invalidated.
    */
-  public void zapCursor();
+  void sequenceChanged();
 }