Skip to content

Commit b7cc884

Browse files
GeraldMitjonahgraham
authored andcommitted
Bug 575946: Fix accessibility on C element Filter
The description for filter text on C element Filter dialog could not be read out. Change-Id: I7c4884cca2c1fff3d872f4775e8529e4428c86ac Reported-by: Gerald Mitchell <Gerald.Mitchell@ibm.com> Signed-off-by: Gerald Mitchell <Gerald.Mitchell@ibm.com>
1 parent 80de3ba commit b7cc884

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/filters/CustomFiltersDialog.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2016 IBM Corporation and others.
2+
* Copyright (c) 2000, 2021 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -138,6 +138,14 @@ protected Control createDialogArea(Composite parent) {
138138
final Label info = new Label(group, SWT.LEFT);
139139
info.setText(FilterMessages.CustomFiltersDialog_patternInfo);
140140

141+
// add the info text as a description to the pattern field
142+
fUserDefinedPatterns.getAccessible().addAccessibleListener(new AccessibleAdapter() {
143+
@Override
144+
public void getDescription(AccessibleEvent e) {
145+
e.result = FilterMessages.CustomFiltersDialog_patternInfo;
146+
}
147+
});
148+
141149
// Enabling / disabling of pattern group
142150
fEnableUserDefinedPatterns.setSelection(fEnablePatterns);
143151
fUserDefinedPatterns.setEnabled(fEnablePatterns);

0 commit comments

Comments
 (0)