Skip to main content

Creating submenus does not work in SequenceAnnotationGenerator

Comments

5 comments

  • Richard Moir

    Firstly, are you sure that you have selected some documents in Geneious which match the DocumentSelectionSignature from your SequenceAnnotationGenerator.getSelectionSignatures()?

    0
  • Weixi Liao

    Yes. If I do not use the submenu and directly create an item under "Tools", it is enabled.

    0
  • Richard Moir

    That appears to be a bug in the API. I found a slightly ugly workaround though: add a divider to your submenu like this:

    public static final GeneiousActionOptions p=new GeneiousActionOptions("name","description").setMainMenuLocation(MainMenu.Tools).addSubmenuDivider(0.6);

    0
  • Richard Moir

    It will also be fixed if you have another DocumentOperation in the same menu.

    0
  • Weixi Liao

    Thanks very much!

    0

Please sign in to leave a comment.