Thank you for your feedback. I did look at ConditionalFeature, but I thought they were more Platform as a whole related. However, I have no problem with your suggestion.
My first take here was basically wholesale theft of the java.awt.Desktop API. > On Oct 12, 2024, at 6:10 PM, Michael Strauß <michaelstr...@gmail.com> wrote: > > Hi David, > > this sounds like a good enhancement. > > As far as the API is concerned, here are some quick comments: > > 1. We already have the ConditionalFeature enum, there's probably no > need to invent another one. > 2. AboutHandler and PreferencesHandler can be Runnable instead, > there's nothing special about the method they provide. > 3. setAboutHandler and setPreferencesHandler shouldn't throw an > exception on non-macOS platforms, since there's no harm done when a > handler is set (but can't be invoked).