unmar.setValidation(false);
object = (JalviewModel) unmar.unmarshal( in );
- af = LoadFromObject(object, file);
+ af = LoadFromObject(object, file, true);
if(af.viewport.gatherViewsHere)
{
gatherToThisFrame.add(af);
}
- AlignFrame LoadFromObject(JalviewModel object, String file)
+ AlignFrame LoadFromObject(JalviewModel object,
+ String file,
+ boolean loadTrees )
{
SequenceSet vamsasSet = object.getVamsasModel().getSequenceSet(0);
Sequence[] vamsasSeq = vamsasSet.getSequence();
//LOAD TREES
///////////////////////////////////////
- if (jms.getTreeCount() > 0)
+ if (loadTrees && jms.getTreeCount() > 0)
{
try
{
viewportsAdded = new Hashtable();
- AlignFrame af = LoadFromObject(jm, null);
+ AlignFrame af = LoadFromObject(jm, null, false);
af.alignPanels.clear();
af.closeMenuItem_actionPerformed(null);