Menu enablement
I need to enable a menu item only if the selected alignment has over 3 sequences.
The usual
public DocumentSelectionSignature[] getSelectionSignatures() {
method seems to only allow enablment based on types but this is not sufficient in this case.
Thank you
Adrian
0
-
Hi Adrian,
You can use DocumentSelectionSignature.forNucleotideAlignment(). See https://assets.geneious.com/developer/geneious/javadoc/latest/com/biomatters/geneious/publicapi/plugin/DocumentSelectionSignature.html#forNucleotideAlignment-int-int-
It allows you specify a minimum and maximum number of sequences.
Best regards,
Matthew0
Please sign in to leave a comment.
Comments
1 comment