// deuniquify and construct/merge additional dataset entries if
// necessary.
context.addAlignment(al);
+ context.updateSetModified(true);
rslt.add(al);
deuniquify = true;
}
{
br = new BufferedReader(src.getReader());
}
- new jalview.io.AnnotationFile().parseAnnotationFrom(
- context.getLastAlignment(), br);
+ context.updateSetModified(new jalview.io.AnnotationFile()
+ .parseAnnotationFrom(context.getLastAlignment(), br));
} catch (Exception e)
{
}
if (dta.getType().equals(JvDataType.FEATURES))
{
- // check the context has a place to store feature rendering definitions, if not, create one.
- if (context.featureColours==null)
+ // check the context has a place to store feature rendering definitions,
+ // if not, create one.
+ if (context.featureColours == null)
{
context.featureColours = new Hashtable();
}
try
{
jalview.io.FeaturesFile ff = new jalview.io.FeaturesFile(src);
- ff.parse(context.getLastAlignment(), context.featureColours,
- false);
+ context.updateSetModified(ff.parse(context.getLastAlignment(),
+ context.featureColours, false));
} catch (Exception e)
{
errmsg = ("Failed to parse the Features file associated with the alignment.");
context.addTreeFromFile(nf);
rslt.add(nf);
+ context.updateSetModified(true);
}
} catch (Exception e)
{
// to buffers.
// import with deuniquify info, and compare results to input.
+ } else {
+ if (context.getLastAlignmentSet().isModified())
+ {
+ System.err.println("Initial alignment set was modified and any associated views should be updated.");
+ }
}
}
}