Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2020-10-23 15:00:07 +0000
committerLakshmi Shanmugam2020-10-23 15:00:07 +0000
commitc4f7a8dd29c5d4876a980e222db62c7b86c9f1f2 (patch)
tree3415fea4574069e398e768ba5e679b6d5d70a5ef
parent7f7c08f43ed63a3883fa78e93c0f920159d25a58 (diff)
downloadeclipse.platform.swt-c4f7a8dd29c5d4876a980e222db62c7b86c9f1f2.tar.gz
eclipse.platform.swt-c4f7a8dd29c5d4876a980e222db62c7b86c9f1f2.tar.xz
eclipse.platform.swt-c4f7a8dd29c5d4876a980e222db62c7b86c9f1f2.zip
Bug 567389 - [Big Sur] Selected TabFolder's text is invisible on macOS
11 Added method OS.isBigSurOrLater to detect BigSur OS. Change-Id: Ib1d789902f6ce7b520d8714989a7aba35bc0a46a
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java10
1 files changed, 10 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 2b48e32ed5..27f4587ea5 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
@@ -176,6 +176,16 @@ public class OS extends C {
}
return false;
}
+ /**
+ * @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 */

Back to the top