1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

fix for bug 189415 - manually add label to symbols table for accessibility

This commit is contained in:
Vivian Kong 2007-05-30 18:21:05 +00:00
parent cf8909d5ee
commit 098f4a4778

View file

@ -7,6 +7,7 @@
*
* Contributors:
* Intel Corporation - initial API and implementation
* IBM Corporation
*******************************************************************************/
package org.eclipse.cdt.ui.newui;
@ -16,6 +17,8 @@ import java.util.Iterator;
import java.util.LinkedList;
import org.eclipse.swt.SWT;
import org.eclipse.swt.accessibility.AccessibleAdapter;
import org.eclipse.swt.accessibility.AccessibleEvent;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.cdt.core.settings.model.CMacroEntry;
@ -30,6 +33,13 @@ public class SymbolTab extends AbstractLangsListTab {
tc = new TableColumn(table, SWT.LEFT);
tc.setText(UIMessages.getString("SymbolTab.1")); //$NON-NLS-1$
tc.setWidth(130);
table.getAccessible().addAccessibleListener(
new AccessibleAdapter() {
public void getName(AccessibleEvent e) {
e.result = UIMessages.getString("SymbolTab.0"); //$NON-NLS-1$
}
}
);
}
public ICLanguageSettingEntry doAdd() {