-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
user storyMutually similar features from an end user's perspectiveMutually similar features from an end user's perspective
Description
Reasoning
Having to always provide a MenuManager argument during opening of Menus feels repetitive, redundant even. Typically there will be a single MenuManager implementation per plugin project, usually the default one.
Implementation details
Use the singleton pattern with public static getters and setters.
- We can retain the
openmethods that accept a customMenuManager, which will keep the same old functionalities while adding a new one that makes programming easier for developers. - Define one statically available singleton implementation that needs to be set, and can then be called by each menu in the
openmethods that don't receive a customMenuManager.
Metadata
Metadata
Assignees
Labels
user storyMutually similar features from an end user's perspectiveMutually similar features from an end user's perspective