X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=blobdiff_plain;f=examples%2Fgroovy%2Fprinttitle.groovy;h=5a2166da3ea2181eed6cdcfd67e0b7dc34693430;hp=8fe91db7f8fe98dafb0e7628116aee04c2d41014;hb=c920b3c897f5d20d839a3fc84c2bfa097970b5d1;hpb=4c46bbeeb645f914293383092f8c6bf022a870e4 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); +}