private final List<Button> buttons = new ArrayList<Button>();
private final List<Button> autoNLButtons = new ArrayList<Button>();
@Override
protected Control createContents(final Composite parent) {
final ScrolledPageContent scrolled = new ScrolledPageContent(parent, SWT.H_SCROLL
| SWT.V_SCROLL);
scrolled.setExpandHorizontal(true);
scrolled.setExpandVertical(true);
final Composite control = new Composite(scrolled, SWT.NONE);
final GridLayout layout = new GridLayout();
layout.marginWidth = 0;
layout.marginHeight = 0;
control.setLayout(layout);
Composite composite;
composite = createSubsection(control,
ErlEditorMessages.SmartTypingPrefs_AutomaticallyClose);
addAutoclosingSection(composite);
// composite = createSubsection(control,"Automove");
// addAutopositionSection(composite);
// composite = createSubsection(control, "Tabs");
// addTabSection(composite);
composite = createSubsection(control,
ErlEditorMessages.SmartTypingPrefs_WhenPasting);
addPasteSection(composite);
// composite = createSubsection(control, "strings");
// addStringsSection(composite);
composite = createSubsection(control,
ErlEditorMessages.SmartTypingPrefs_autoNewLine);
addAutoNLSection(composite);
scrolled.setContent(control);
final Point size = control.computeSize(SWT.DEFAULT, SWT.DEFAULT);
scrolled.setMinSize(size.x, size.y);
setToPreferences();
return scrolled;
}