Community
Participate
Working Groups
With default Eclipse settings, org.eclipse.e4.ui.swt.gtk has a java compile errors: "Access restriction: The method OS.setDarkThemePreferred(boolean)' is not API (restriction on required project 'org.eclipse.swt'). Due to this, the project fails to compile and I can't launch child-eclipse with dark mode. I have to hack a bit to get the project to work. One solution is to override the default and set Java->Compiler->Errors/Warnings -> change "Forbidden reference (acess rules) from 'Error' to 'Warning'. Patch incoming.
Created attachment 268069 [details] Demonstration of issue screenshot
Created attachment 268070 [details] Config to prevent the warning screenshot
New Gerrit change created: https://git.eclipse.org/r/96045
Gerrit change https://git.eclipse.org/r/96045 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=9a6348cce9b4a013e158e27e388e07bd05203805
New Gerrit change created: https://git.eclipse.org/r/96053
(In reply to Eclipse Genie from comment #5) > New Gerrit change created: https://git.eclipse.org/r/96053 After further investigation, I found that the root cause was an issue in my target platform. I had "org.eclipse.swt.gtk.linux.x86_64" turned off, so that I wouldn't see duplicate calls in call-hierarchy, but this had an impact on org.eclipse.e4.ui.swt.gtk. Re-enabling it enabled theming engine to work again. As such, reverting the customization in options.
New Gerrit change created: https://git.eclipse.org/r/96057
(In reply to Eclipse Genie from comment #7) > New Gerrit change created: https://git.eclipse.org/r/96057 Better patch that keeps static settings for org.ecilpse.e4.ui.swt.gtk project.
Gerrit change https://git.eclipse.org/r/96057 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d2ed5a1b088cde9053619d75c39d6bab99dc6418