1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Bug 305402 - [Accessibility] Path and symbols properties page (Include/Symbols tab)

This commit is contained in:
Vivian Kong 2010-03-10 21:22:37 +00:00
parent c1af52dba5
commit a50a1925f2
3 changed files with 23 additions and 11 deletions

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007, 2009 Intel Corporation and others. * Copyright (c) 2007, 2010 Intel Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -26,8 +26,6 @@ import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.TableViewer; import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.Viewer;
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.custom.SashForm; import org.eclipse.swt.custom.SashForm;
import org.eclipse.swt.events.ControlEvent; import org.eclipse.swt.events.ControlEvent;
import org.eclipse.swt.events.ControlListener; import org.eclipse.swt.events.ControlListener;
@ -317,12 +315,13 @@ public abstract class AbstractLangsListTab extends AbstractCPropertyTab {
langCol.setText(UIMessages.getString("AbstractLangsListTab.1")); //$NON-NLS-1$ langCol.setText(UIMessages.getString("AbstractLangsListTab.1")); //$NON-NLS-1$
langCol.setWidth(200); langCol.setWidth(200);
langCol.setResizable(false); langCol.setResizable(false);
langTree.getAccessible().addAccessibleListener(new AccessibleAdapter() { langCol.setToolTipText(UIMessages.getString("AbstractLangsListTab.1")); //$NON-NLS-1$
@Override // langTree.getAccessible().addAccessibleListener(new AccessibleAdapter() {
public void getName(AccessibleEvent e) { // @Override
e.result = UIMessages.getString("AbstractLangsListTab.1"); //$NON-NLS-1$ // public void getName(AccessibleEvent e) {
} // e.result = UIMessages.getString("AbstractLangsListTab.1"); //$NON-NLS-1$
}); // }
// });
return langTree; return langTree;
} }

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007, 2009 Intel Corporation and others. * Copyright (c) 2007, 2010 Intel Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -12,6 +12,8 @@
package org.eclipse.cdt.ui.newui; package org.eclipse.cdt.ui.newui;
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.widgets.Composite; import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.TableColumn; import org.eclipse.swt.widgets.TableColumn;
@ -28,7 +30,16 @@ public class IncludeTab extends AbstractLangsListTab {
public void additionalTableSet() { public void additionalTableSet() {
columnToFit = new TableColumn(table, SWT.NONE); columnToFit = new TableColumn(table, SWT.NONE);
columnToFit.setText(UIMessages.getString("IncludeTab.0")); //$NON-NLS-1$ columnToFit.setText(UIMessages.getString("IncludeTab.0")); //$NON-NLS-1$
columnToFit.setToolTipText(UIMessages.getString("IncludeTab.0")); //$NON-NLS-1$
showBIButton.setSelection(true); showBIButton.setSelection(true);
table.getAccessible().addAccessibleListener(
new AccessibleAdapter() {
@Override
public void getName(AccessibleEvent e) {
e.result = UIMessages.getString("IncludeTab.0"); //$NON-NLS-1$
}
}
);
} }
@Override @Override

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007, 2009 Intel Corporation and others. * Copyright (c) 2007, 2010 Intel Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -33,9 +33,11 @@ public class SymbolTab extends AbstractLangsListTab {
TableColumn tc = new TableColumn(table, SWT.LEFT); TableColumn tc = new TableColumn(table, SWT.LEFT);
tc.setText(UIMessages.getString("SymbolTab.0")); //$NON-NLS-1$ tc.setText(UIMessages.getString("SymbolTab.0")); //$NON-NLS-1$
tc.setWidth(80); tc.setWidth(80);
tc.setToolTipText(UIMessages.getString("SymbolTab.0")); //$NON-NLS-1$
tc = new TableColumn(table, SWT.LEFT); tc = new TableColumn(table, SWT.LEFT);
tc.setText(UIMessages.getString("SymbolTab.1")); //$NON-NLS-1$ tc.setText(UIMessages.getString("SymbolTab.1")); //$NON-NLS-1$
tc.setWidth(130); tc.setWidth(130);
tc.setToolTipText(UIMessages.getString("SymbolTab.1")); //$NON-NLS-1$
table.getAccessible().addAccessibleListener( table.getAccessible().addAccessibleListener(
new AccessibleAdapter() { new AccessibleAdapter() {
@Override @Override