Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 315812
Collapse All | Expand All

(-)Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java (-3 / +9 lines)
Lines 199-208 Link Here
199
				return description;
199
				return description;
200
			}
200
			}
201
		}
201
		}
202
	} else if (nsAttributeName.isEqualToString (OS.NSAccessibilityTitleAttribute) || nsAttributeName.isEqualToString (OS.NSAccessibilityDescriptionAttribute)) {
202
	} else if (nsAttributeName.isEqualToString (OS.NSAccessibilityTitleAttribute)) {
203
		String accessibleText = text.length() > 0 ? text : toolTipText;
204
		if (accessibleText != null) {
205
			return NSString.stringWith(accessibleText).id;
206
		} else {
207
			return NSString.string().id;
208
		}
209
	} else if (nsAttributeName.isEqualToString (OS.NSAccessibilityHelpAttribute)) {
203
		String accessibleText = toolTipText;
210
		String accessibleText = toolTipText;
204
		if (accessibleText == null || accessibleText.equals("")) accessibleText = text;
211
		if (accessibleText != null) {
205
		if (!(accessibleText == null || accessibleText.equals(""))) {
206
			return NSString.stringWith(accessibleText).id;
212
			return NSString.stringWith(accessibleText).id;
207
		} else {
213
		} else {
208
			return NSString.string().id;
214
			return NSString.string().id;

Return to bug 315812