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

fix for bug 189412 - manually add label to Languages and Include paths tables for accessibility

This commit is contained in:
Vivian Kong 2007-05-28 21:02:26 +00:00
parent ff9fcadc14
commit 87c4f3566e
2 changed files with 20 additions and 0 deletions

View file

@ -7,6 +7,7 @@
* *
* 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;
@ -24,6 +25,8 @@ import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.TableViewer; import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.Viewer;
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.custom.SashForm; import org.eclipse.swt.custom.SashForm;
import org.eclipse.swt.events.PaintEvent; import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.events.PaintListener; import org.eclipse.swt.events.PaintListener;
@ -225,6 +228,13 @@ public abstract class AbstractLangsListTab extends AbstractCPropertyTab {
langCol.setText(UIMessages.getString("AbstractLangsListTab.1")); //$NON-NLS-1$ langCol.setText(UIMessages.getString("AbstractLangsListTab.1")); //$NON-NLS-1$
langCol.setWidth(200); langCol.setWidth(200);
langCol.setResizable(false); langCol.setResizable(false);
langTree.getAccessible().addAccessibleListener(
new AccessibleAdapter() {
public void getName(AccessibleEvent e) {
e.result = UIMessages.getString("AbstractLangsListTab.1"); //$NON-NLS-1$
}
}
);
return langTree; return langTree;
} }

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.TableColumn; import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.cdt.core.settings.model.CIncludePathEntry; import org.eclipse.cdt.core.settings.model.CIncludePathEntry;
@ -23,6 +26,13 @@ public class IncludeTab extends AbstractLangsListTab {
TableColumn c = new TableColumn(table, SWT.NONE); TableColumn c = new TableColumn(table, SWT.NONE);
c.setWidth(210); c.setWidth(210);
c.setText(UIMessages.getString("IncludeTab.0")); //$NON-NLS-1$ c.setText(UIMessages.getString("IncludeTab.0")); //$NON-NLS-1$
table.getAccessible().addAccessibleListener(
new AccessibleAdapter() {
public void getName(AccessibleEvent e) {
e.result = UIMessages.getString("IncludeTab.0"); //$NON-NLS-1$
}
}
);
showBIButton.setSelection(true); showBIButton.setSelection(true);
} }