mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 09:15:38 +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:
|
* 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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue