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

import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
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) {
        Composite main = new Composite(parent, SWT.NULL);
        GridLayout layout = new GridLayout();
        layout.numColumns = 1;
        layout.marginHeight = 0;
        layout.marginWidth = 0;
        main.setLayout(layout);

        Label info = new Label(main, SWT.NONE);
        info.setText("nothing to see here");
        return main;
    }

}
@@ -133,16 +133,94 @@
 wt.SWT;%0A
+import org.eclipse.swt.graphics.Font;%0Aimport org.eclipse.swt.layout.GridData;%0A
 import o
@@ -1454,24 +1454,63 @@
 e parent) %7B%0A
+        Font font = parent.getFont();%0A%0A
         Comp
@@ -1555,16 +1555,84 @@
 .NULL);%0A
+        main.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));%0A
         
@@ -1796,16 +1796,44 @@
 layout);
+%0A        main.setFont(font);
 %0A%0A      
@@ -1874,16 +1874,16 @@
 .NONE);%0A
-
         
@@ -1915,24 +1915,52 @@
 see here%22);%0A
+        info.setFont(font);%0A
         retu

Set font & layout data.