From: gmungoc Date: Mon, 25 Mar 2019 08:57:56 +0000 (+0000) Subject: JAL-3127 scripts updated for method signature change X-Git-Tag: Release_2_11_0~17^2~31 X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=522aa7882efafa14cc70163537863aec89ba0cc1 JAL-3127 scripts updated for method signature change --- diff --git a/examples/groovy/colourConserved.groovy b/examples/groovy/colourConserved.groovy index 35c54d5..5fc2ad1 100644 --- a/examples/groovy/colourConserved.groovy +++ b/examples/groovy/colourConserved.groovy @@ -43,7 +43,7 @@ conserved = { -> /* * to make a new instance for each alignment view */ - getInstance: { AlignViewportI view, AnnotatedCollectionI coll, Map map -> conserved() }, + getInstance: { AlignViewportI view, AnnotatedCollectionI coll -> conserved() }, /* * method only needed if colour scheme has to recalculate diff --git a/examples/groovy/colourSchemes.groovy b/examples/groovy/colourSchemes.groovy index 3f1f953..eb40cc6 100644 --- a/examples/groovy/colourSchemes.groovy +++ b/examples/groovy/colourSchemes.groovy @@ -26,7 +26,7 @@ candy = { -> /* * to make a new instance for each alignment view */ - getInstance: { AlignViewportI view, AnnotatedCollectionI coll, Map map -> candy() }, + getInstance: { view, coll -> candy() }, /* * method only needed if colour scheme has to recalculate @@ -86,7 +86,7 @@ byWeight = { -> // this colour scheme is peptide-specific: isApplicableTo: { coll -> !coll.isNucleotide() }, alignmentChanged: { coll, map -> }, - getInstance: { coll, map -> byWeight() }, + getInstance: { view, coll -> byWeight() }, isSimple: { true }, findColour: {res, col, seq, consensus, pid -> switch (res) { diff --git a/examples/groovy/colourUnconserved.groovy b/examples/groovy/colourUnconserved.groovy index e186766..2365c1e 100644 --- a/examples/groovy/colourUnconserved.groovy +++ b/examples/groovy/colourUnconserved.groovy @@ -42,7 +42,7 @@ unconserved = { -> /* * to make a new instance for each alignment view */ - getInstance: { AnnotatedCollectionI coll, Map map -> unconserved() }, + getInstance: { view, coll -> unconserved() }, /* * method only needed if colour scheme has to recalculate