Bug 498760 - [Autosave] Preference page has not padding within group
Added proper padding in AutoSave Preference page
Change-Id: I0fda7f68ddb354ba5b6edbe1ce22c69919d59945
Signed-off-by: Patrik Suzzi <psuzzi@gmail.com>
diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/AutoSavePreferencePage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/AutoSavePreferencePage.java
index 7eaa570..009e784 100644
--- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/AutoSavePreferencePage.java
+++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/AutoSavePreferencePage.java
@@ -7,6 +7,7 @@
*
* Contributors:
* Axel Richard <axel.richard@obeo.fr> - initial API and implementation, Bug 492401
+ * Patrik Suzzi <psuzzi@gmail.com> - Bug 498760
*******************************************************************************/
package org.eclipse.ui.internal.ide.dialogs;
@@ -44,6 +45,8 @@
*
*/
public class AutoSavePreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
+ public AutoSavePreferencePage() {
+ }
private Button autoSaveButton;
@@ -318,8 +321,8 @@
autoSaveGroup = new Group(composite, SWT.NONE);
final GridLayout autoSaveGroupLayout = new GridLayout();
autoSaveGroupLayout.numColumns = 1;
- autoSaveGroupLayout.marginWidth = 0;
- autoSaveGroupLayout.marginHeight = 0;
+ autoSaveGroupLayout.marginWidth = 6;
+ autoSaveGroupLayout.marginHeight = 2;
autoSaveGroup.setLayout(autoSaveGroupLayout);
final GridData autoSaveGroupLayoutData = new GridData();
autoSaveGroupLayoutData.horizontalAlignment = GridData.FILL;
@@ -339,8 +342,7 @@
intervalCompositeLayout.marginWidth = 0;
intervalCompositeLayout.marginHeight = 10;
intervalComposite.setLayout(intervalCompositeLayout);
- final GridData intervalCompositeLayoutData = new GridData(SWT.FILL, SWT.FILL, true, false);
- intervalComposite.setLayoutData(intervalCompositeLayoutData);
+ intervalComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
intervalComposite.setEnabled(autoSaveButton.getSelection());
intervalField = new IntegerFieldEditor(IPreferenceConstants.SAVE_AUTOMATICALLY_INTERVAL, "", //$NON-NLS-1$
@@ -375,8 +377,7 @@
messageLayout.marginWidth = 0;
messageLayout.marginHeight = 0;
noteComposite.setLayout(messageLayout);
- final GridData noteCompositeData = new GridData(SWT.FILL, SWT.FILL, true, false);
- noteComposite.setLayoutData(noteCompositeData);
+ noteComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
noteLabel = new Label(noteComposite, SWT.NONE);
noteLabel.setText(IDEWorkbenchMessages.AutoSavePreferencPage_noteLabel);