Skip to main content

more than one submenu


1 comment

  • Richard Moir

    All classes that use the parent option must use the exact same instance of the parent options (eg. a singleton). This can easily be done with a static field. In your plugin class:

    `public static final GeneiousActionOptions PARENT_OPTIONS = new GeneiousActionOptions("Editing Options").setInMainToolbar(true,0);`

    Then in your other classes:

    `GeneiousActionOptions sub1 = GeneiousActionOptions.createSubmenuActionOptions(MyPlugin.PARENT_OPTIONS, submenuItem2);`


Please sign in to leave a comment.