On Mon, 7 Sep 2026 23:31:26 GMT, Marius Hanl <[email protected]> wrote:

> The new responsibility:
> 
> - `GlassPlatform` for everything that is glass related, including all 
> properties like:
>   - `use.egl` - `useEGL()`
>   - the glass platform factory - `getPlatformFactory()`
>   - `isHeadless()`
>   - `isMonocle()`
>   - `com.sun.javafx.isEmbedded` - `isEmbedded()`
>   - `isSWT()`
>   - `glass.accessible.force` - `isAccessibilityEnabled()`
> 
> - `PlatformUtil`
>   - `isWindows()`
>   - `isMac()`
>   - `isLinux()`
>   - `isUnix()`
>   - `isIOS()`
>   - `isAndroid()`
>   - `isStaticBuild()`
>   - May loads a property file (is therefore always initialized first)
> 
> ---
> 
> Something that was first discussed in 
> https://github.com/openjdk/jfx/pull/1864 and I also saw when I did the 
> cleanup some months ago in PR https://github.com/openjdk/jfx/pull/2190.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 6cac8251
Author:    Marius Hanl <[email protected]>
URL:       
https://git.openjdk.org/jfx/commit/6cac8251d93b001fbaaee7d143c2361a6770570c
Stats:     383 lines in 23 files changed: 178 ins; 137 del; 68 mod

8365309: Extract Glass/Prism Platform code to GlassPlatform

Reviewed-by: angorya, kcr

-------------

PR: https://git.openjdk.org/jfx/pull/2299

Reply via email to