1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 15:25:49 +02:00

Patch for bug 189216 by Jason Montojo - No label for language mappings table

This commit is contained in:
Vivian Kong 2007-05-28 19:49:08 +00:00
parent 43e78cee49
commit fd2d54649e
4 changed files with 23 additions and 0 deletions

View file

@ -25,6 +25,8 @@ import org.eclipse.jface.layout.TableColumnLayout;
import org.eclipse.jface.viewers.ColumnWeightData;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
import org.eclipse.swt.accessibility.AccessibleAdapter;
import org.eclipse.swt.accessibility.AccessibleEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
@ -79,6 +81,12 @@ public class ProjectLanguageMappingWidget extends LanguageMappingWidget {
fTable = new Table(tableParent, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.FULL_SELECTION);
fTable.setHeaderVisible(true);
fTable.setLinesVisible(true);
fTable.getAccessible().addAccessibleListener(new AccessibleAdapter() {
public void getName(AccessibleEvent e) {
e.result = PreferencesMessages.ProjectLanguagesPropertyPage_mappingTableTitle;
}
});
fTable.setToolTipText(PreferencesMessages.ProjectLanguagesPropertyPage_mappingTableTitle);
TableColumn configurationColumn = new TableColumn(fTable, SWT.LEAD);
configurationColumn.setText(PreferencesMessages.ProjectLanguagesPropertyPage_configurationColumn);

View file

@ -24,6 +24,8 @@ import org.eclipse.jface.layout.TableColumnLayout;
import org.eclipse.jface.viewers.ColumnWeightData;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
import org.eclipse.swt.accessibility.AccessibleAdapter;
import org.eclipse.swt.accessibility.AccessibleEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
@ -61,6 +63,13 @@ public class WorkspaceLanguageMappingWidget extends LanguageMappingWidget {
fTable = new Table(tableParent, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.FULL_SELECTION);
fTable.setHeaderVisible(true);
fTable.setLinesVisible(true);
fTable.getAccessible().addAccessibleListener(new AccessibleAdapter() {
public void getName(AccessibleEvent e) {
e.result = PreferencesMessages.WorkspaceLanguagesPreferencePage_mappingTableTitle;
}
});
fTable.setToolTipText(PreferencesMessages.WorkspaceLanguagesPreferencePage_mappingTableTitle);
TableColumn contentTypeColumn = new TableColumn(fTable, SWT.LEAD);
contentTypeColumn.setText(PreferencesMessages.ProjectLanguagesPropertyPage_contentTypeColumn);

View file

@ -197,6 +197,7 @@ public final class PreferencesMessages extends NLS {
public static String WorkspaceLanguagesPreferencePage_description;
public static String WorkspaceLanguagesPreferencePage_missingLanguage;
public static String WorkspaceLanguagesPreferencePage_mappingTableTitle;
public static String ProjectLanguagesPropertyPage_description;
public static String ProjectLanguagesPropertyPage_configurationColumn;
@ -207,6 +208,7 @@ public final class PreferencesMessages extends NLS {
public static String ProjectLanguagesPropertyPage_inheritedWorkspaceMappingsGroup;
public static String ProjectLanguagesPropertyPage_overriddenContentType;
public static String ProjectLanguagesPropertyPage_missingLanguage;
public static String ProjectLanguagesPropertyPage_mappingTableTitle;
public static String ContentTypeMappingsDialog_title;
public static String ContentTypeMappingsDialog_configuration;
@ -225,6 +227,7 @@ public final class PreferencesMessages extends NLS {
public static String FileLanguagesPropertyPage_configurationColumn;
public static String FileLanguagesPropertyPage_defaultMapping;
public static String FileLanguagesPropertyPage_missingLanguage;
public static String FileLanguagesPropertyPage_mappingTableTitle;
public static String CPluginPreferencePage_caption;
public static String CPluginPreferencePage_structuralParseMode_label;

View file

@ -231,6 +231,7 @@ LanguageMappings_missingLanguageTitle = Missing Languages
WorkspaceLanguagesPreferencePage_description = These settings are global to the entire workspace. They are overridden by project-specific language mappings.
WorkspaceLanguagesPreferencePage_missingLanguage = The workspace contains mappings to one or more languages that are not currently installed. References to these languages will be removed:\n{0}
WorkspaceLanguagesPreferencePage_mappingTableTitle = Language mappings for the workspace
ProjectLanguagesPropertyPage_description = These settings are project-specific. The mappings listed here override <a href="workspace">workspace-wide</a> language mappings.
ProjectLanguagesPropertyPage_configurationColumn = Configuration
@ -241,6 +242,7 @@ ProjectLanguagesPropertyPage_removeMappingButton = &Remove
ProjectLanguagesPropertyPage_inheritedWorkspaceMappingsGroup = Language settings inherited from the workspace
ProjectLanguagesPropertyPage_overriddenContentType = (Overridden) {0}
ProjectLanguagesPropertyPage_missingLanguage = This project contains mappings to one or more languages that are not currently installed. References to these languages will be removed:\n{0}
ProjectLanguagesPropertyPage_mappingTableTitle = Language mappings for this project
ContentTypeMappingsDialog_title = Add Mapping
ContentTypeMappingsDialog_configuration = Configuration
@ -259,6 +261,7 @@ FileLanguagesPropertyPage_inheritedFromFile = Inherited from (Default) ({0})
FileLanguagesPropertyPage_configurationColumn = Configuration
FileLanguagesPropertyPage_defaultMapping = (Default)
FileLanguagesPropertyPage_missingLanguage = This project contains files that are mapped to one or more languages that are not currently installed. References to these languages will be removed:\n{0}
FileLanguagesPropertyPage_mappingTableTitle = Language mappings for files
# Others
ProposalFilterPreferencesUtil_defaultFilterName=<Default Filter>