AlignFrame af = (AlignFrame) frames[i];
// update alignment and root from frame.
- vds.storeVAMSAS(af.getViewport());
+ vds.storeVAMSAS(af.getViewport(), af.getTitle());
}
}
}
/**
* put the alignment viewed by AlignViewport into cdoc.
*
- * @param av
+ * @param av alignViewport to be stored
+ * @param aFtitle title for alignment
*/
- public void storeVAMSAS(AlignViewport av) {
+ public void storeVAMSAS(AlignViewport av, String aFtitle) {
try
{
jalview.datamodel.AlignmentI jal = av.getAlignment();
// sensible source
// here
dataset.addAlignment(alignment);
+ {
+ Property title = new Property();
+ title.setName("jalview:AlTitle");
+ title.setType("string");
+ title.setContent(aFtitle);
+ alignment.addProperty(title);
+ }
alignment.setGapChar(String.valueOf(av.getGapCharacter()));
AlignmentSequence alseq = null;
for (int i = 0; i < jal.getHeight(); i++)