From bcd69929dba447593c10ed661545751727ad0b77 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 1 Jun 2017 16:11:45 +0100 Subject: [PATCH] JAL-2526 zapCursor() renamed sequenceChanged() --- src/jalview/commands/EditCommand.java | 2 +- src/jalview/datamodel/Sequence.java | 2 +- src/jalview/datamodel/SequenceI.java | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) 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(); } -- 1.7.10.2