> 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).
Marius Hanl has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 15 commits: - Merge branch 'master' of https://github.com/openjdk/jfx into 8365309-move-PlatformUtil-to-javafx.graphics - review - change references in test and comments - Move isEmbedded(), and move the SWT check as well into GlassPlatform - Merge branch 'master' of https://github.com/openjdk/jfx into 8365309-move-PlatformUtil-to-javafx.graphics - Merge branch 'master' of https://github.com/openjdk/jfx into 8365309-move-PlatformUtil-to-javafx.graphics - proper getter now - Move platform factory to GlassPlatform - Move accessible handling to GlassPlatform - Move headless, egl embedded type (now monocle) to GlassPlatform - ... and 5 more: https://git.openjdk.org/jfx/compare/ce1cc59b...3467d6ca ------------- Changes: https://git.openjdk.org/jfx/pull/2299/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2299&range=07 Stats: 383 lines in 23 files changed: 178 ins; 137 del; 68 mod Patch: https://git.openjdk.org/jfx/pull/2299.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/2299/head:pull/2299 PR: https://git.openjdk.org/jfx/pull/2299
