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:
parent
c1af52dba5
commit
a50a1925f2
3 changed files with 23 additions and 11 deletions
|
@ -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
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* 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.Viewer;
|
||||
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.events.ControlEvent;
|
||||
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.setWidth(200);
|
||||
langCol.setResizable(false);
|
||||
langTree.getAccessible().addAccessibleListener(new AccessibleAdapter() {
|
||||
@Override
|
||||
public void getName(AccessibleEvent e) {
|
||||
e.result = UIMessages.getString("AbstractLangsListTab.1"); //$NON-NLS-1$
|
||||
}
|
||||
});
|
||||
langCol.setToolTipText(UIMessages.getString("AbstractLangsListTab.1")); //$NON-NLS-1$
|
||||
// langTree.getAccessible().addAccessibleListener(new AccessibleAdapter() {
|
||||
// @Override
|
||||
// public void getName(AccessibleEvent e) {
|
||||
// e.result = UIMessages.getString("AbstractLangsListTab.1"); //$NON-NLS-1$
|
||||
// }
|
||||
// });
|
||||
return langTree;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -12,6 +12,8 @@
|
|||
package org.eclipse.cdt.ui.newui;
|
||||
|
||||
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.TableColumn;
|
||||
|
||||
|
@ -28,7 +30,16 @@ public class IncludeTab extends AbstractLangsListTab {
|
|||
public void additionalTableSet() {
|
||||
columnToFit = new TableColumn(table, SWT.NONE);
|
||||
columnToFit.setText(UIMessages.getString("IncludeTab.0")); //$NON-NLS-1$
|
||||
columnToFit.setToolTipText(UIMessages.getString("IncludeTab.0")); //$NON-NLS-1$
|
||||
showBIButton.setSelection(true);
|
||||
table.getAccessible().addAccessibleListener(
|
||||
new AccessibleAdapter() {
|
||||
@Override
|
||||
public void getName(AccessibleEvent e) {
|
||||
e.result = UIMessages.getString("IncludeTab.0"); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -33,9 +33,11 @@ public class SymbolTab extends AbstractLangsListTab {
|
|||
TableColumn tc = new TableColumn(table, SWT.LEFT);
|
||||
tc.setText(UIMessages.getString("SymbolTab.0")); //$NON-NLS-1$
|
||||
tc.setWidth(80);
|
||||
tc.setToolTipText(UIMessages.getString("SymbolTab.0")); //$NON-NLS-1$
|
||||
tc = new TableColumn(table, SWT.LEFT);
|
||||
tc.setText(UIMessages.getString("SymbolTab.1")); //$NON-NLS-1$
|
||||
tc.setWidth(130);
|
||||
tc.setToolTipText(UIMessages.getString("SymbolTab.1")); //$NON-NLS-1$
|
||||
table.getAccessible().addAccessibleListener(
|
||||
new AccessibleAdapter() {
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue