String (int eventType) { return switch (eventType) { case GlobalMenuLib.EVENT_OPENED -> "event-opened"; case GlobalMenuLib.EVENT_CLOSED -> "event-closed"; case GlobalMenuLib.EVENT_CLICKED -> "event-clicked"; case GlobalMenuLib.SIGNAL_ABOUT_TO_SHOW -> "signal-about-to-show"; case GlobalMenuLib.SIGNAL_ACTIVATED -> "signal-activated"; case GlobalMenuLib.SIGNAL_CHILD_ADDED -> "signal-child-added"; case GlobalMenuLib.SIGNAL_SHOWN -> "signal-shown"; default -> "unknown-event-type-" + eventType; }; }