mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Patch for bug 187874 by Jason Montojo - Add/remove buttons on Language Mappings preference pages should be the same size
This commit is contained in:
parent
42eb02f1af
commit
19c6167c8d
2 changed files with 4 additions and 0 deletions
|
@ -100,6 +100,7 @@ public class ProjectLanguageMappingWidget extends LanguageMappingWidget {
|
|||
buttons.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false));
|
||||
|
||||
Button addButton = new Button(buttons, SWT.PUSH);
|
||||
addButton.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
|
||||
addButton.setText(PreferencesMessages.ProjectLanguagesPropertyPage_addMappingButton);
|
||||
addButton.addListener(SWT.Selection, new Listener() {
|
||||
public void handleEvent(Event event) {
|
||||
|
@ -133,6 +134,7 @@ public class ProjectLanguageMappingWidget extends LanguageMappingWidget {
|
|||
});
|
||||
|
||||
Button removeButton = new Button(buttons, SWT.PUSH);
|
||||
removeButton.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
|
||||
removeButton.setText(PreferencesMessages.ProjectLanguagesPropertyPage_removeMappingButton);
|
||||
removeButton.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
|
|
|
@ -79,6 +79,7 @@ public class WorkspaceLanguageMappingWidget extends LanguageMappingWidget {
|
|||
buttons.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false));
|
||||
|
||||
Button addButton = new Button(buttons, SWT.PUSH);
|
||||
addButton.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
|
||||
addButton.setText(PreferencesMessages.ProjectLanguagesPropertyPage_addMappingButton);
|
||||
addButton.addListener(SWT.Selection, new Listener() {
|
||||
public void handleEvent(Event event) {
|
||||
|
@ -98,6 +99,7 @@ public class WorkspaceLanguageMappingWidget extends LanguageMappingWidget {
|
|||
});
|
||||
|
||||
Button removeButton = new Button(buttons, SWT.PUSH);
|
||||
removeButton.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
|
||||
removeButton.setText(PreferencesMessages.ProjectLanguagesPropertyPage_removeMappingButton);
|
||||
removeButton.addListener(SWT.Selection, new Listener() {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue