You don't need to call addField
to just add a normal control to the field editor preference page. The code you have is sufficient. addField
is only needed for FieldEditor
derived classes.
Update: Your setLayoutData
is incorrect, use something like:
link.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 3, 1));
You may have to adjust the number of columns depending on the rest of your page.