mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 11:55:40 +02:00
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>
This commit is contained in:
parent
80de3ba94f
commit
b7cc884e3d
1 changed files with 9 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2000, 2016 IBM Corporation and others.
|
||||
* Copyright (c) 2000, 2021 IBM Corporation and others.
|
||||
*
|
||||
* This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License 2.0
|
||||
|
@ -138,6 +138,14 @@ public class CustomFiltersDialog extends SelectionDialog {
|
|||
final Label info = new Label(group, SWT.LEFT);
|
||||
info.setText(FilterMessages.CustomFiltersDialog_patternInfo);
|
||||
|
||||
// add the info text as a description to the pattern field
|
||||
fUserDefinedPatterns.getAccessible().addAccessibleListener(new AccessibleAdapter() {
|
||||
@Override
|
||||
public void getDescription(AccessibleEvent e) {
|
||||
e.result = FilterMessages.CustomFiltersDialog_patternInfo;
|
||||
}
|
||||
});
|
||||
|
||||
// Enabling / disabling of pattern group
|
||||
fEnableUserDefinedPatterns.setSelection(fEnablePatterns);
|
||||
fUserDefinedPatterns.setEnabled(fEnablePatterns);
|
||||
|
|
Loading…
Add table
Reference in a new issue