Desktop Preferences editor

As of revision 2498, there's a new display in the Swing Desktop: a Preferences editor. It displays and edits both Java java.util.prefs and OSGi org.osgi.service.prefs.

Grab if from the latest trunk release!


P.S. To actually implement the prefs editor, we sneaked in a part of the R4.1 spec, namely the Bundle.getBundleContext() method. For the curious, this was because no admin service was defined to the OSGi prefs API, thus making it necessary to grab other bundle's context (yeah, with the appropriate permisson). Still, the prefs editor will work on older/other frameworks (including the big four) thanks to some reflection hacks :)

No comments: