if (object.getJalviewModelSequence().getViewportCount() > 0)
{
af = _af;
- if (object.getJalviewModelSequence().getViewportCount() > 1
- && af.viewport.gatherViewsHere)
+ if (af.viewport.gatherViewsHere)
{
gatherToThisFrame.put(af.viewport.getSequenceSetId(), af);
}
import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
import jalview.gui.AlignFrame;
+import jalview.gui.Desktop;
import jalview.schemes.AnnotationColourGradient;
import jalview.schemes.ColourSchemeI;
assertTrue("Got Different group sequence colours", diffgseqcols);
System.out.println("Per sequence (Group) colourscheme successfully applied and recovered.");
}
+ @Test
+ public void gatherViewsHere() throws Exception
+ {
+ int origCount = Desktop.getAlignframes().length;
+ AlignFrame af = new jalview.io.FileLoader().LoadFileWaitTillLoaded("examples/exampleFile_2_7.jar", FormatAdapter.FILE);
+ assertTrue("Didn't read in the example file correctly.",af!=null);
+ assertTrue("Didn't gather the views in the example file.", Desktop.getAlignframes().length==1+origCount);
+
+ }
}