Project: JDT
Bug 138088 Clear button on Java preference page should not fill vertically
Reported: 2006-04-21 20:53:13 | Status: resolved fixed

Version: 3.2.0 Build id: I20060413-1718 The button to clear the state of the "don't ask me again" dialogs currently has a vertical alignment of fill. This causes the button to look strange when the preference dialog is very narrow (see screenshot). The vertical alignment should be changed to center to match the label. ### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.ui Index: ui/org/eclipse/jdt/internal/ui/preferences/JavaBasePreferencePage.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaBasePreferencePage.java,v retrieving revision 1.69 diff -u -r1.69 JavaBasePreferencePage.java --- ui/org/eclipse/jdt/internal/ui/preferences/JavaBasePreferencePage.java 8 Nov 2005 10:36:33 -0000 1.69 +++ ui/org/eclipse/jdt/internal/ui/preferences/JavaBasePreferencePage.java 22 Apr 2006 00:40:59 -0000 @@ -182,7 +182,7 @@ Button clearButton= new Button(dontAskGroup, SWT.PUSH); clearButton.setText(PreferencesMessages.JavaBasePreferencePage_do_not_hide_button); - clearButton.setLayoutData(new GridData(GridData.FILL, GridData.FILL, false, false)); + clearButton.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false)); clearButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { unhideAllDialogs();

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaBasePreferencePage.java