Project: SWT
Bug 231884 [Accessibility] Controls that implement kEventAccessibleGetNamedAttribute need to call swt accessible API
Reported: 2008-05-13 13:51:07 | Status: resolved fixed

20080513 Many of the Carbon controls had to override kEventAccessibleGetNamedAttribute in order to provide basic accessibility for the control. If an application hooked an AccessibleListener to any of these controls, then the application's AccessibleListener code was not being called. The fix involved coming up with a mechanism to let the Accessible class know that theEvent may already contain valid data. Also, care needed to be taken to make sure that CallNextEventHandler was not called twice for the same event.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Accessibility/carbon/org/eclipse/swt/accessibility/Accessible.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Button.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Combo.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Link.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Sash.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Spinner.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Table.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolBar.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/ToolItem.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Tree.java