Java 类org.eclipse.swt.accessibility.AccessibleListener 实例源码

项目:gef-gwt    文件:ToolBarManager.java   
/**
 * Get the accessible listener for the tool bar.
 * 
 * @return AccessibleListener
 * 
 * @since 3.1
 */
private AccessibleListener getAccessibleListener() {
    return new AccessibleAdapter() {
        public void getName(AccessibleEvent e) {
            if (e.childID != ACC.CHILDID_SELF) {
                ToolItem item = toolBar.getItem(e.childID);
                if (item != null) {
                    String toolTip = item.getToolTipText();
                    if (toolTip != null) {
                        e.result = toolTip;
                    }
                }
            }
        }
    };

}