Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorVivian Kong2008-05-30 15:30:09 -0400
committerVivian Kong2008-05-30 15:30:09 -0400
commit44dfc4a59d17643a94998102ceb49dca02a62702 (patch)
tree39c06c9077aff11440a6482d9590addf99068edb /debug
parent421cf1068797ad83dd28976c19cf03dff2ed7669 (diff)
downloadorg.eclipse.cdt-44dfc4a59d17643a94998102ceb49dca02a62702.tar.gz
org.eclipse.cdt-44dfc4a59d17643a94998102ceb49dca02a62702.tar.xz
org.eclipse.cdt-44dfc4a59d17643a94998102ceb49dca02a62702.zip
fix for bug 234909
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointDialog.java23
1 files changed, 22 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointDialog.java
index 09791d7157..c71490e0ce 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointDialog.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AddWatchpointDialog.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004-5, 2007 QNX Software Systems and others.
+ * Copyright (c) 2004-5, 2008 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -8,6 +8,7 @@
* Contributors:
* QNX Software Systems - Initial API and implementation
* Freescale Semiconductor - Address watchpoints, https://bugs.eclipse.org/bugs/show_bug.cgi?id=118299
+ * IBM Corporation
*******************************************************************************/
package org.eclipse.cdt.debug.internal.ui.actions;
@@ -20,6 +21,8 @@ import org.eclipse.debug.ui.DebugUITools;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleAdapter;
+import org.eclipse.swt.accessibility.AccessibleEvent;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionEvent;
@@ -171,6 +174,15 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec
}
}
fMemorySpaceInput.addModifyListener( this );
+ //234909 - for accessibility
+ fMemorySpaceInput.getAccessible().addAccessibleListener(
+ new AccessibleAdapter() {
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = ActionMessages.getString( "AddWatchpointDialog.5" );
+ }
+
+ });
}
/**
@@ -250,6 +262,15 @@ public class AddWatchpointDialog extends Dialog implements ModifyListener, Selec
}
});
fRangeField.addModifyListener( this );
+ //234909 - for accessibility
+ fRangeField.getAccessible().addAccessibleListener(
+ new AccessibleAdapter() {
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = ActionMessages.getString( "AddWatchpointDialog.6" );
+ }
+
+ });
}
private void createAccessWidgets( Composite parent ) {

Back to the top