X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignment.java;h=ad7cdd2a42128c91b20e73d77e8f6bdd3e88efae;hb=7ab5d6b0ba5fec1ea4a4239e79c476d841622485;hp=62de7e8bfbfac3b92a2b40520ea49bb9f0e83703;hpb=1889827c44c51f6353fe8619e5d44b421158af23;p=jalview.git diff --git a/src/jalview/datamodel/Alignment.java b/src/jalview/datamodel/Alignment.java index 62de7e8..ad7cdd2 100755 --- a/src/jalview/datamodel/Alignment.java +++ b/src/jalview/datamodel/Alignment.java @@ -448,7 +448,8 @@ public class Alignment implements AlignmentI { removeAnnotationForGroup(null); } - for (SequenceGroup sg:groups) { + for (SequenceGroup sg : groups) + { sg.setContext(null); } groups.clear(); @@ -1486,32 +1487,38 @@ public class Alignment implements AlignmentI } } - @Override - public void validateAnnotation(AlignmentAnnotation alignmentAnnotation) - { - alignmentAnnotation.validateRangeAndDisplay(); - if (isNucleotide() && alignmentAnnotation.isValidStruc()) - { - hasRNAStructure = true; - } - } - @Override -public int getEndRes() -{ - return getWidth()-1; -}@Override -public int getStartRes() -{ - return 0; -} -/* In the case of AlignmentI - returns the dataset for the alignment, if set - * (non-Javadoc) - * @see jalview.datamodel.AnnotatedCollectionI#getContext() - */ -@Override -public AnnotatedCollectionI getContext() -{ - return dataset; -} + @Override + public void validateAnnotation(AlignmentAnnotation alignmentAnnotation) + { + alignmentAnnotation.validateRangeAndDisplay(); + if (isNucleotide() && alignmentAnnotation.isValidStruc()) + { + hasRNAStructure = true; + } + } + + @Override + public int getEndRes() + { + return getWidth() - 1; + } + + @Override + public int getStartRes() + { + return 0; + } + + /* + * In the case of AlignmentI - returns the dataset for the alignment, if set + * (non-Javadoc) + * + * @see jalview.datamodel.AnnotatedCollectionI#getContext() + */ + @Override + public AnnotatedCollectionI getContext() + { + return dataset; + } }