1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix from Tanya W. PR 66300

This commit is contained in:
Alain Magloire 2004-06-23 17:04:16 +00:00
parent f4ba258cd6
commit 17e970b3a6
2 changed files with 8 additions and 6 deletions

View file

@ -1,3 +1,7 @@
2004-06-23 Tanya Wolff
Fix for Bug 66300 - i18n: File Types preferences buttons don't expand
* src/org/eclipse/cdt/internal/ui/preferences/CFileTypesPreferences.java
2004-06-21 Alain Magloire
It is too late to change the icons, but still

View file

@ -224,13 +224,12 @@ public class CFileTypesPreferenceBlock {
// New button
fBtnNew = new Button(buttonPane, SWT.PUSH);
gridData = new GridData(GridData.FILL_HORIZONTAL);
fBtnNew.setText(PreferencesMessages.getString("CFileTypesPreferenceBlock.New...")); //$NON-NLS-1$
gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.widthHint = SWTUtil.getButtonWidthHint(fBtnNew);
gridData.heightHint = SWTUtil.getButtonHeigthHint(fBtnNew);
fBtnNew.setLayoutData(gridData);
fBtnNew.setText(PreferencesMessages.getString("CFileTypesPreferenceBlock.New...")); //$NON-NLS-1$
fBtnNew.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event e) {
@ -241,13 +240,12 @@ public class CFileTypesPreferenceBlock {
// Remove button
fBtnRemove = new Button(buttonPane, SWT.PUSH);
fBtnRemove.setText(PreferencesMessages.getString("CFileTypesPreferenceBlock.Remove")); //$NON-NLS-1$
gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.widthHint = SWTUtil.getButtonWidthHint(fBtnRemove);
gridData.heightHint = SWTUtil.getButtonHeigthHint(fBtnRemove);
fBtnRemove.setLayoutData(gridData);
fBtnRemove.setText(PreferencesMessages.getString("CFileTypesPreferenceBlock.Remove")); //$NON-NLS-1$
fBtnRemove.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event e) {