public static void setAccessibilityText ( Control control , final String text ) { control . getAccessible ( ) . addAccessibleListener ( new AccessibleAdapter ( ) { public void getName ( AccessibleEvent e ) { e . result = text ; } } ) ; }
Adds an accessibility listener returning the given fixed name .