♻️ Refactor: Extract IDEMenuManager from SikulixIDE (part 1)
Visual Automation IDE — automate anything you see on screen
Brought to you by:
julienmer
Originally created by: julienmerconsulting
[!IMPORTANT]
IDE modernization — menu extraction. Moved all menu construction and action handling out of the monolithicSikulixIDEclass into a dedicatedIDEMenuManager.
SikulixIDE.java was a 3000+ line God class handling everything: window management, menus, actions, editor tabs, and more. This PR extracts the menu subsystem into its own class.
| File | Change |
|---|---|
IDEMenuManager.java |
New class — all menu creation (File, Edit, Run, View, Tool, Help), action classes, and menu state management |
SikulixIDE.java |
Replaced inline menu fields/methods with delegation to menuManager |
SikuliIDEPopUpMenu.java |
Updated to reference IDEMenuManager.FileAction instead of SikulixIDE.FileAction |
Before: SikulixIDE ──── menus + actions + window + tabs + ...
After: SikulixIDE ──── window + tabs + ...
└──── IDEMenuManager ──── menus + actions
+1,090 / -1,076 across 3 files (net: moved code, not new code)
[!NOTE]
Generated by OpenAI Codex as part of the IDE modernization initiative. Followed up by [#7] for a minor fix.
Ticket changed by: julienmerconsulting