1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 17:25:38 +02:00

fix for bug 189416 - manually add label to library paths table for accessibility

This commit is contained in:
Vivian Kong 2007-05-28 20:36:54 +00:00
parent 54f848af6f
commit ff9fcadc14

View file

@ -7,10 +7,13 @@
* *
* Contributors: * Contributors:
* Intel Corporation - initial API and implementation * Intel Corporation - initial API and implementation
* IBM Corporation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.ui.newui; package org.eclipse.cdt.ui.newui;
import org.eclipse.swt.SWT; import org.eclipse.swt.SWT;
import org.eclipse.swt.accessibility.AccessibleAdapter;
import org.eclipse.swt.accessibility.AccessibleEvent;
import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.TableColumn; import org.eclipse.swt.widgets.TableColumn;
@ -29,6 +32,13 @@ public class LibraryPathTab extends AbstractLangsListTab implements IPathEntrySt
TableColumn c = new TableColumn(table, SWT.NONE); TableColumn c = new TableColumn(table, SWT.NONE);
c.setWidth(300); c.setWidth(300);
c.setText(UIMessages.getString("LibraryPathTab.0")); //$NON-NLS-1$ c.setText(UIMessages.getString("LibraryPathTab.0")); //$NON-NLS-1$
table.getAccessible().addAccessibleListener(
new AccessibleAdapter() {
public void getName(AccessibleEvent e) {
e.result = UIMessages.getString("LibraryPathTab.0"); //$NON-NLS-1$
}
}
);
} }
public void createControls(Composite parent) { public void createControls(Composite parent) {