* Adds the fields.
* @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
*/
@Override
public void createFieldEditors() {
VimPlugin plugin = VimPlugin.getDefault();
if (!Os.isFamily(Os.FAMILY_MAC)){
addField(new BooleanFieldEditor(
PreferenceConstants.P_EMBED,
plugin.getMessage("preference.embed"),
getFieldEditorParent()));
}
addField(new BooleanFieldEditor(
PreferenceConstants.P_TABBED,
plugin.getMessage("preference.tabbed"),
getFieldEditorParent()));
addField(new BooleanFieldEditor(
PreferenceConstants.P_START_ECLIMD,
plugin.getMessage("preference.eclimd.start"),
getFieldEditorParent()));
addField(new BooleanFieldEditor(
PreferenceConstants.P_FOCUS_AUTO_CLICK,
plugin.getMessage("preference.focus.click"),
getFieldEditorParent()));
addField(new StringFieldEditor(
PreferenceConstants.P_PORT,
plugin.getMessage("preference.port"),
getFieldEditorParent()));
addField(new FileFieldEditor(
PreferenceConstants.P_GVIM,
plugin.getMessage("preference.gvim"),
true,
getFieldEditorParent()));
addField(new StringFieldEditor(
PreferenceConstants.P_OPTS,
plugin.getMessage("preference.gvim.args"),
getFieldEditorParent()));
}