From: amwaterhouse Date: Tue, 1 Nov 2005 17:09:15 +0000 (+0000) Subject: Inform user about visual alignment, not dataset updates X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ef3edac65042574096614e44a9a9f51946ffd7ff;p=jalview.git Inform user about visual alignment, not dataset updates --- diff --git a/src/jalview/io/SequenceFeatureFetcher.java b/src/jalview/io/SequenceFeatureFetcher.java index f3f144c..44ce60b 100755 --- a/src/jalview/io/SequenceFeatureFetcher.java +++ b/src/jalview/io/SequenceFeatureFetcher.java @@ -236,14 +236,6 @@ public class SequenceFeatureFetcher implements Runnable sequence.setStart(absStart); sequence.setEnd(absEnd); - if ( (absStart != sequence.getStart()) || (absEnd != sequence.getEnd())) - { - sbuffer.append("Updated: " + sequence.getName() + " " + - sequence.getStart() + "/" + sequence.getEnd() + - " to " + absStart + "/" + absEnd + "\n"); - } - - int n = 0; SequenceI seq2; @@ -260,15 +252,19 @@ public class SequenceFeatureFetcher implements Runnable absStart = sequence.getSequence().indexOf(nonGapped); absEnd = absStart + nonGapped.toString().length() - 1; - sbuffer.append("Updated: VISUAL " + seq2.getName() + " " + - seq2.getStart() + "/" + seq2.getEnd() + - " to " + (absStart + sequence.getStart()) + "/" + - - (absEnd + sequence.getStart()) + "\n"); - - seq2.setStart(absStart + sequence.getStart()); - seq2.setEnd(absEnd + sequence.getStart()); + // This is the Viewd alignment sequences + // No need to tell the user of the dataset updates + if ( (seq2.getStart() != absStart+sequence.getStart()) + || (seq2.getEnd() != absEnd+sequence.getStart())) + { + sbuffer.append("Updated: " + seq2.getName() + " " + + seq2.getStart() + "/" + seq2.getEnd() + + " to " + (absStart + sequence.getStart()) + "/" + + (absEnd + sequence.getStart()) + "\n"); + seq2.setStart(absStart + sequence.getStart()); + seq2.setEnd(absEnd + sequence.getStart()); + } } n++;