Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2017-08-21 11:20:13 +0000
committerLakshmi Shanmugam2017-08-21 11:32:34 +0000
commit6fb86d2a673ed7c6ecebced87f01292634d228e3 (patch)
treece9452c608466c2698497989a46e693662014e03 /bundles/org.eclipse.swt/Eclipse SWT PI
parent496744ea99d6b16c696f82f10e5e83c8ac359571 (diff)
downloadeclipse.platform.swt-6fb86d2a673ed7c6ecebced87f01292634d228e3.tar.gz
eclipse.platform.swt-6fb86d2a673ed7c6ecebced87f01292634d228e3.tar.xz
eclipse.platform.swt-6fb86d2a673ed7c6ecebced87f01292634d228e3.zip
Bug 519089:[Java 9] Automatic window tabbing should be disallowed
In macOS 10.12, a new system preference "prefer tabs when opening documents" has been added which causes automatic tabbing of windows in Eclipse. This is by default enabled to work when application is in fullscreen mode and can be modified to work always. Disable automatic window tabbing, but setting the NSWindow.allowsAutomaticWindowTabbing property to false. Change-Id: I7f22249d92dabe2597147b9089c42f79b68ac6c4
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java3
2 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
index 107326b8c9..d9d49f3248 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
@@ -3958,7 +3958,7 @@
<method selector="bounds" swt_gen="true">
<retval swt_gen="true"></retval>
</method>
- <method selector="cacheDisplayInRect:toBitmapImageRep:" swt_gen="true">
+ <method selector="cacheDisplayInRect:toBitmapImageRep:" swt_gen="true" swt_gen_custom_callback="true">
<arg swt_gen="true"></arg>
<arg swt_gen="true"></arg>
<retval swt_gen="true"></retval>
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 531dcf55cc..6e67c413d4 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
@@ -180,6 +180,9 @@ public class OS extends C {
public static final int NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7;
public static final int NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8;
+ /** 10.12 selector */
+ public static final long /*int*/ sel_setAllowsAutomaticWindowTabbing_ = sel_registerName("setAllowsAutomaticWindowTabbing:");
+
/* AWT application delegate. Remove these when JavaRuntimeSupport.framework has bridgesupport generated for it. */
public static final long /*int*/ class_JRSAppKitAWT = objc_getClass("JRSAppKitAWT");
public static final long /*int*/ sel_awtAppDelegate = sel_registerName("awtAppDelegate");

Back to the top