Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVivian Kong2007-05-30 19:51:43 +0000
committerVivian Kong2007-05-30 19:51:43 +0000
commitdf40b25a1347215e212e55d41ef1a75b8febeee0 (patch)
tree8fc6dd48d6c21e0c2e8a3f412accf5c2697e11c1 /debug/org.eclipse.cdt.debug.ui
parent257295f752f91d00a125b173469800a56a2a33a5 (diff)
downloadorg.eclipse.cdt-df40b25a1347215e212e55d41ef1a75b8febeee0.tar.gz
org.eclipse.cdt-df40b25a1347215e212e55d41ef1a75b8febeee0.tar.xz
org.eclipse.cdt-df40b25a1347215e212e55d41ef1a75b8febeee0.zip
fix for bug 189326 - manually add labels to controls for accessibility
Diffstat (limited to 'debug/org.eclipse.cdt.debug.ui')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageOne.java25
1 files changed, 24 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageOne.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageOne.java
index cd6238a7670..ed9233dce73 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageOne.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageOne.java
@@ -7,6 +7,7 @@
*
* Contributors:
* Nokia - initial API and implementation
+ * IBM Corporation
*******************************************************************************/
package org.eclipse.cdt.debug.ui.importexecutable;
@@ -38,6 +39,8 @@ import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleAdapter;
+import org.eclipse.swt.accessibility.AccessibleEvent;
import org.eclipse.swt.events.FocusAdapter;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.ModifyEvent;
@@ -261,6 +264,13 @@ public class ImportExecutablePageOne extends WizardPage {
});
executablesViewer.setInput(this);
+ executablesViewer.getTree().getAccessible().addAccessibleListener(
+ new AccessibleAdapter() {
+ public void getName(AccessibleEvent e) {
+ e.result = wizard.getExecutableListLabel();
+ }
+ }
+ );
createSelectionButtons(listComposite);
}
@@ -287,7 +297,13 @@ public class ImportExecutablePageOne extends WizardPage {
// project location entry field
this.multipleExecutablePathField = new Text(workArea, SWT.BORDER);
-
+ multipleExecutablePathField.getAccessible().addAccessibleListener(
+ new AccessibleAdapter() {
+ public void getName(AccessibleEvent e) {
+ e.result = Messages.ImportExecutablePageOne_SearchDirectory;
+ }
+ }
+ );
this.multipleExecutablePathField.setLayoutData(new GridData(
GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL));
selectMultipleBrowseButton = new Button(workArea, SWT.PUSH);
@@ -401,6 +417,13 @@ public class ImportExecutablePageOne extends WizardPage {
// project location entry field
this.singleExecutablePathField = new Text(workArea, SWT.BORDER);
+ singleExecutablePathField.getAccessible().addAccessibleListener(
+ new AccessibleAdapter() {
+ public void getName(AccessibleEvent e) {
+ e.result = Messages.ImportExecutablePageOne_SelectExecutable;
+ }
+ }
+ );
// Set the data name field so Abbot based tests can find it.
singleExecutablePathField.setData("name", "singleExecutablePathField");
singleExecutablePathField.addModifyListener(new ModifyListener() {

Back to the top