Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-09-15 05:19:59 -0400
committerLakshmi Shanmugam2017-09-25 05:20:11 -0400
commit00720b46e1bebb3f6d678aaeece1a01bc020b17f (patch)
tree3c93203b20af5ed64eb90d919a564d344fb0cf7b /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse
parentfaa9b81401467043c2ef023cd38b28367c4f37c0 (diff)
downloadeclipse.platform.swt-00720b46e1bebb3f6d678aaeece1a01bc020b17f.tar.gz
eclipse.platform.swt-00720b46e1bebb3f6d678aaeece1a01bc020b17f.tar.xz
eclipse.platform.swt-00720b46e1bebb3f6d678aaeece1a01bc020b17f.zip
Bug 522349 - Use system cursor for SWT.CURSOR_WAIT
Use non-API 'busyButClickableCursor' selector to get an animated waiting cursor for SWT.CURSOR_WAIT. Fallback to old code if selector is not available. Change-Id: Idf991748da1d87cc39ec5a137b4dbf436d23966b Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java4
1 files changed, 4 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 338419fb4b..02cbb61513 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
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Karsten Thoms <karsten.thoms@itemis.de> - Bug 522349
*******************************************************************************/
package org.eclipse.swt.internal.cocoa;
@@ -132,6 +133,9 @@ public class OS extends C {
public static final long /*int*/ sel_beginSheetModalForWindow_completionHandler_ = sel_registerName("beginSheetModalForWindow:completionHandler:");
+ /** non-API selector for NSCursor **/
+ public static final long /*int*/ sel_busyButClickableCursor = sel_registerName("busyButClickableCursor");
+
/* These are not generated in order to avoid creating static methods on all classes */
public static final long /*int*/ sel_isSelectorExcludedFromWebScript_ = sel_registerName("isSelectorExcludedFromWebScript:");
public static final long /*int*/ sel_webScriptNameForSelector_ = sel_registerName("webScriptNameForSelector:");

Back to the top