X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fgroovy%2Fprinttitle.groovy;h=5a2166da3ea2181eed6cdcfd67e0b7dc34693430;hb=c45601b486d1a9fd51273134699ca980c872ea6f;hp=8fe91db7f8fe98dafb0e7628116aee04c2d41014;hpb=1a6d20b15b2ba810bc807f76eb44ab1b9cc4482a;p=jalview.git diff --git a/examples/groovy/printtitle.groovy b/examples/groovy/printtitle.groovy index 8fe91db..5a2166d 100644 --- a/examples/groovy/printtitle.groovy +++ b/examples/groovy/printtitle.groovy @@ -1,12 +1,12 @@ -// do something groovy in jalview -print "Hello World.\n"; -def alf = Jalview.getAlignframes(); -for (ala in alf) -{ - // ala is an jalview.gui.AlignFrame object - print ala.getTitle()+"\n"; - // get the parent jalview.datamodel.Alignment from the alignment viewport - def alignment = ala.viewport.alignment; - // get the first sequence from the jalview.datamodel.Alignment object - def seq = alignment.getSequenceAt(0); -} +// do something groovy in jalview +print "Hello World.\n"; +def alf = Jalview.getAlignframes(); +for (ala in alf) +{ + // ala is an jalview.gui.AlignFrame object + print ala.getTitle()+"\n"; + // get the parent jalview.datamodel.Alignment from the alignment viewport + def alignment = ala.viewport.alignment; + // get the first sequence from the jalview.datamodel.Alignment object + def seq = alignment.getSequenceAt(0); +}