Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2017-09-29 05:58:52 +0000
committerLakshmi Shanmugam2017-09-29 06:16:38 +0000
commitef52d7ec57eab4ec68f49e66ffbf0698421fdb3c (patch)
treea848bdda202b0de38e32d222291c53ab5e879ab8 /bundles/org.eclipse.swt/Eclipse SWT
parent1391d1e854f7ff317f836a800a7059ebc862d234 (diff)
downloadeclipse.platform.swt-ef52d7ec57eab4ec68f49e66ffbf0698421fdb3c.tar.gz
eclipse.platform.swt-ef52d7ec57eab4ec68f49e66ffbf0698421fdb3c.tar.xz
eclipse.platform.swt-ef52d7ec57eab4ec68f49e66ffbf0698421fdb3c.zip
Bug 521849: Fix deprecated warnings in Mac native build
SetFrontProcess is deprecated since 10.9. Remove it as the minimum supported mac OS version is 10.10 and is no longer required in Display class. Change-Id: I29862661233f12af5a1340a24b6b27e9ed87ea82
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
index ceea364dfb..c40406daa9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
@@ -870,9 +870,6 @@ void createDisplay (DeviceData data) {
if (OS.VERSION_MMB >= OS.VERSION_MMB (10, 9, 0)) {
application.setActivationPolicy (OS.NSApplicationActivationPolicyRegular);
NSRunningApplication.currentApplication().activateWithOptions (OS.NSApplicationActivateIgnoringOtherApps);
- } else {
- OS.TransformProcessType (psn, OS.kProcessTransformToForegroundApplication);
- OS.SetFrontProcess (psn);
}
}
ptr = C.getenv (ascii ("APP_ICON_" + pid));

Back to the top