JAL-1551 crlf changes due to checkout with text=auto
[jalview.git] / examples / groovy / printtitle.groovy
1 // do something groovy in jalview
2 print "Hello World.\n";
3 def alf = Jalview.getAlignframes();
4 for (ala in alf)
5 {
6         // ala is an jalview.gui.AlignFrame object 
7         print ala.getTitle()+"\n";
8         // get the parent jalview.datamodel.Alignment from the alignment viewport
9         def alignment = ala.viewport.alignment;
10         // get the first sequence from the jalview.datamodel.Alignment object
11         def seq = alignment.getSequenceAt(0); 
12 }