From: gmungoc Date: Thu, 1 Jun 2017 15:11:45 +0000 (+0100) Subject: JAL-2526 zapCursor() renamed sequenceChanged() X-Git-Tag: Release_2_10_3b1~214^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bcd69929dba447593c10ed661545751727ad0b77;p=jalview.git JAL-2526 zapCursor() renamed sequenceChanged() --- diff --git a/src/jalview/commands/EditCommand.java b/src/jalview/commands/EditCommand.java index 0a8dc7d..9eaeb7a 100644 --- a/src/jalview/commands/EditCommand.java +++ b/src/jalview/commands/EditCommand.java @@ -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) { diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 7ecb07a..6b460e2 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -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++; } diff --git a/src/jalview/datamodel/SequenceI.java b/src/jalview/datamodel/SequenceI.java index 0f78bdb..18f0948 100755 --- a/src/jalview/datamodel/SequenceI.java +++ b/src/jalview/datamodel/SequenceI.java @@ -522,7 +522,9 @@ public interface SequenceI extends ASequenceI List 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(); }