package com.googlecode.jslint4java.eclipse.ui.preferences;

import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

import com.googlecode.jslint4java.eclipse.ui.JSLintUIPlugin;

/**
 * This class represents a preference page that is contributed to the Preferences dialog. By
 * subclassing <samp>FieldEditorPreferencePage</samp>, we can use the field support built into JFace
 * that allows us to create a page that is small and knows how to save, restore and apply itself.
 * <p>
 * This page is used to modify preferences only. They are stored in the preference store that
 * belongs to the main plug-in class. That way, preferences can be accessed directly via the
 * preference store.
 * <p>
 * TODO: trigger a rebuild on change.
 */
public class OptionsPreferencePage extends PreferencePage implements
        IWorkbenchPreferencePage {

    public OptionsPreferencePage() {
        super("jslint4java");
        setPreferenceStore(JSLintUIPlugin.getDefault().getPreferenceStore());
    }

    public void init(IWorkbench workbench) {
    }

    @Override
    protected Control createContents(Composite parent) {
        Label info = new Label(parent, SWT.NONE);
        info.setText("nothing to see here");
        return null;
    }

}
@@ -133,16 +133,58 @@
 wt.SWT;%0A
+import org.eclipse.swt.layout.GridLayout;%0A
 import o
@@ -1376,24 +1376,257 @@
 e parent) %7B%0A
+        Composite main = new Composite(parent, SWT.NULL);%0A        GridLayout layout = new GridLayout();%0A        layout.numColumns = 1;%0A        layout.marginHeight = 0;%0A        layout.marginWidth = 0;%0A        main.setLayout(layout);%0A%0A
         Labe
@@ -1644,22 +1644,20 @@
 w Label(
-parent
+main
 , SWT.NO
@@ -1725,12 +1725,12 @@
 urn 
-null
+main
 ;%0A  

Add a composite parent above the Label.