View | Details | Raw Unified | Return to bug 251469 | Differences between
and this patch

Collapse All | Expand All

(-)Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/Accessible.java (-18 / +2 lines)
Lines 947-971 Link Here
947
			AccessibleListener listener = (AccessibleListener) accessibleListeners.elementAt(i);
947
			AccessibleListener listener = (AccessibleListener) accessibleListeners.elementAt(i);
948
			listener.getDescription(event);
948
			listener.getDescription(event);
949
		}
949
		}
950
950
		if (event.result != null) {
951
		returnValue = (event.result != null ? NSString.stringWith(event.result) : null);
951
			returnValue = NSString.stringWith(event.result);
952
953
		// If no description was provided, try the name.
954
		if (returnValue == null) {
955
			for (int i = 0; i < accessibleListeners.size(); i++) {
956
				AccessibleListener listener = (AccessibleListener) accessibleListeners.elementAt(i);
957
				listener.getName(event);
958
			}
959
960
			returnValue = (event.result != null ? NSString.stringWith(event.result) : null);
961
962
			// If that failed and we are a composite or a canvas return a blank string -- otherwise, let the
963
			// Cocoa control handle it.
964
			if (returnValue == null) {
965
				if (control instanceof Composite) returnValue = NSString.stringWith("");
966
			}
967
		}
952
		}
968
969
		return returnValue;
953
		return returnValue;
970
	}
954
	}
971
	
955
	

Return to bug 251469