mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fix for bug 189419 - manually add label to projects list for accessibility
This commit is contained in:
parent
098f4a4778
commit
9134ab688a
2 changed files with 11 additions and 0 deletions
|
@ -466,6 +466,7 @@ RefsTab.0=Expand all
|
||||||
RefsTab.1=Show checked
|
RefsTab.1=Show checked
|
||||||
RefsTab.2=Collapse all
|
RefsTab.2=Collapse all
|
||||||
RefsTab.3=Active
|
RefsTab.3=Active
|
||||||
|
RefsTab.4=Projects list
|
||||||
SymbolTab.0=Symbol
|
SymbolTab.0=Symbol
|
||||||
SymbolTab.1=Value
|
SymbolTab.1=Value
|
||||||
SymbolTab.2=Add symbol
|
SymbolTab.2=Add symbol
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
@ -16,6 +17,8 @@ import java.util.Map;
|
||||||
import org.eclipse.core.resources.IProject;
|
import org.eclipse.core.resources.IProject;
|
||||||
import org.eclipse.jface.viewers.TreeViewer;
|
import org.eclipse.jface.viewers.TreeViewer;
|
||||||
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.events.SelectionAdapter;
|
import org.eclipse.swt.events.SelectionAdapter;
|
||||||
import org.eclipse.swt.events.SelectionEvent;
|
import org.eclipse.swt.events.SelectionEvent;
|
||||||
import org.eclipse.swt.layout.GridData;
|
import org.eclipse.swt.layout.GridData;
|
||||||
|
@ -42,6 +45,13 @@ public class RefsTab extends AbstractCPropertyTab {
|
||||||
|
|
||||||
tree = new Tree(usercomp, SWT.SINGLE | SWT.CHECK | SWT.BORDER);
|
tree = new Tree(usercomp, SWT.SINGLE | SWT.CHECK | SWT.BORDER);
|
||||||
tree.setLayoutData(new GridData(GridData.FILL_BOTH));
|
tree.setLayoutData(new GridData(GridData.FILL_BOTH));
|
||||||
|
tree.getAccessible().addAccessibleListener(
|
||||||
|
new AccessibleAdapter() {
|
||||||
|
public void getName(AccessibleEvent e) {
|
||||||
|
e.result = UIMessages.getString("RefsTab.4"); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
initData();
|
initData();
|
||||||
tree.addSelectionListener(new SelectionAdapter() {
|
tree.addSelectionListener(new SelectionAdapter() {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue