diff options
author | Scott Kovatch <skovatch> | 2010-08-18 17:42:05 +0000 |
---|---|---|
committer | Scott Kovatch <skovatch> | 2010-08-18 17:42:05 +0000 |
commit | 46159b829f79207b951f67bcf52d4270389d9a54 (patch) | |
tree | 33cec8aa80cc147a6b1127e7af02ed50ce18aa81 | |
parent | c47a84b31eeb8f1a5733556c0a0b8f952702ead7 (diff) | |
download | eclipse.platform.swt-46159b829f79207b951f67bcf52d4270389d9a54.tar.gz eclipse.platform.swt-46159b829f79207b951f67bcf52d4270389d9a54.tar.xz eclipse.platform.swt-46159b829f79207b951f67bcf52d4270389d9a54.zip |
319677 - return toolTipText for help attribute if accessible didn't do it.
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java index bda3e8fd6f..4d53dad105 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java @@ -236,6 +236,15 @@ int /*long*/ accessibilityAttributeValue(int /*long*/ id, int /*long*/ sel, int // superclass handle it. if (returnObject == null) { returnValue = super.accessibilityAttributeValue(id, sel, arg0); + + // Feature in Cocoa: SWT doesn't use setToolTip for tooltip support, so if the + // help attribute was requested return toolTipText. + if (returnObject == null) { + if (attribute.isEqualToString(OS.NSAccessibilityHelpAttribute)) { + if (toolTipText != null) returnValue = NSString.stringWith(toolTipText).id; + } + } + } else { returnValue = returnObject.id; } |