mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Patch for bug 189230 by Jason Montojo - File Language Mappings property page doesn't provide a label for the mapping table
This commit is contained in:
parent
48656a5e1f
commit
dd17f14498
2 changed files with 9 additions and 1 deletions
|
@ -21,6 +21,8 @@ import org.eclipse.core.runtime.content.IContentType;
|
||||||
import org.eclipse.jface.layout.TableColumnLayout;
|
import org.eclipse.jface.layout.TableColumnLayout;
|
||||||
import org.eclipse.jface.viewers.ColumnWeightData;
|
import org.eclipse.jface.viewers.ColumnWeightData;
|
||||||
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.CCombo;
|
import org.eclipse.swt.custom.CCombo;
|
||||||
import org.eclipse.swt.custom.TableEditor;
|
import org.eclipse.swt.custom.TableEditor;
|
||||||
import org.eclipse.swt.layout.GridData;
|
import org.eclipse.swt.layout.GridData;
|
||||||
|
@ -124,6 +126,12 @@ public class FileLanguageMappingPropertyPage extends PropertyPage {
|
||||||
fTable = new Table(tableParent, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.FULL_SELECTION);
|
fTable = new Table(tableParent, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.FULL_SELECTION);
|
||||||
fTable.setHeaderVisible(true);
|
fTable.setHeaderVisible(true);
|
||||||
fTable.setLinesVisible(true);
|
fTable.setLinesVisible(true);
|
||||||
|
fTable.getAccessible().addAccessibleListener(new AccessibleAdapter() {
|
||||||
|
public void getName(AccessibleEvent e) {
|
||||||
|
e.result = PreferencesMessages.FileLanguagesPropertyPage_mappingTableTitle;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
fTable.setToolTipText(PreferencesMessages.FileLanguagesPropertyPage_mappingTableTitle);
|
||||||
|
|
||||||
TableColumn contentTypeColumn = new TableColumn(fTable, SWT.LEAD);
|
TableColumn contentTypeColumn = new TableColumn(fTable, SWT.LEAD);
|
||||||
contentTypeColumn.setText(PreferencesMessages.FileLanguagesPropertyPage_configurationColumn);
|
contentTypeColumn.setText(PreferencesMessages.FileLanguagesPropertyPage_configurationColumn);
|
||||||
|
|
|
@ -261,7 +261,7 @@ FileLanguagesPropertyPage_inheritedFromFile = Inherited from (Default) ({0})
|
||||||
FileLanguagesPropertyPage_configurationColumn = Configuration
|
FileLanguagesPropertyPage_configurationColumn = Configuration
|
||||||
FileLanguagesPropertyPage_defaultMapping = (Default)
|
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_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
|
FileLanguagesPropertyPage_mappingTableTitle = Language mappings for this file
|
||||||
|
|
||||||
# Others
|
# Others
|
||||||
ProposalFilterPreferencesUtil_defaultFilterName=<Default Filter>
|
ProposalFilterPreferencesUtil_defaultFilterName=<Default Filter>
|
||||||
|
|
Loading…
Add table
Reference in a new issue