X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=examples%2Fgroovy%2Fprinttitle.groovy;h=0d462f1e19fd39b850599b2c6b2fcdad54fd59f1;hb=06e3a52df5af8243cdb67c023c8ddd834711ad36;hp=8fe91db7f8fe98dafb0e7628116aee04c2d41014;hpb=1a6d20b15b2ba810bc807f76eb44ab1b9cc4482a;p=jalview.git diff --git a/examples/groovy/printtitle.groovy b/examples/groovy/printtitle.groovy index 8fe91db..0d462f1 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); +}