Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2021-02-15 18:10:29 +0000
committerSravan Kumar Lakkimsetti2021-08-26 13:16:29 +0000
commit0aa4d10afc7ea50c6eaf0aeaaea3e1ff3b795133 (patch)
treed7bbceee5dee3b302127840af7fc3a0a3c33a703
parent7021a8261440f76a3a32957e70100987cb4b8000 (diff)
downloadeclipse.platform.swt-0aa4d10afc7ea50c6eaf0aeaaea3e1ff3b795133.tar.gz
eclipse.platform.swt-0aa4d10afc7ea50c6eaf0aeaaea3e1ff3b795133.tar.xz
eclipse.platform.swt-0aa4d10afc7ea50c6eaf0aeaaea3e1ff3b795133.zip
Bug 567389 - [Big Sur] Selected TabFolder's text is invisible on macOS11
Added method OS.isBigSurOrLater to detect BigSur OS. Change-Id: Iddebc964426aada862934c7d60481678ed2a89f3 (cherry picked from commit 89d8e7fd0e08d2f11a847bfec16093cbf49abf7e) Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/184468 Tested-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com> Reviewed-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
index 32546f2a7f..f2459cca4a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
@@ -200,6 +200,18 @@ public class OS extends C {
OS.beginSheetModalForWindow(id.id, OS.sel_beginSheetModalForWindow_completionHandler_, window != null ? window.id : 0, handler);
}
+
+ /**
+ * @return true for macOS BigSur or later, returns false for macOS 10.15 and older
+ */
+ public static boolean isBigSurOrLater () {
+ /*
+ * Currently Big Sur OS version matches with 10.16 and not 11.0. This may be temporary.
+ * Creating a method, so that it can be fixed in one place if/when this changes.
+ */
+ return OS.VERSION >= OS.VERSION(10, 16, 0);
+ }
+
/** JNI natives */
/** @method flags=jni */

Back to the top