mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
fix for bug 189416 - manually add label to library paths table for accessibility
This commit is contained in:
parent
54f848af6f
commit
ff9fcadc14
1 changed files with 10 additions and 0 deletions
|
@ -7,10 +7,13 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Intel Corporation - initial API and implementation
|
||||
* IBM Corporation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.ui.newui;
|
||||
|
||||
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.TableColumn;
|
||||
|
||||
|
@ -29,6 +32,13 @@ public class LibraryPathTab extends AbstractLangsListTab implements IPathEntrySt
|
|||
TableColumn c = new TableColumn(table, SWT.NONE);
|
||||
c.setWidth(300);
|
||||
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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue