import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.RadioGroupFieldEditor;
import org.eclipse.jface.preference.StringFieldEditor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
StringFieldEditor externalParser =
new StringFieldEditor(PHPeclipsePlugin.EXTERNAL_PARSER_PREF, "&External Parser command:", 60, getFieldEditorParent());
+
+ RadioGroupFieldEditor chooseParser = new RadioGroupFieldEditor(
+ IPreferenceConstants.PHP_PARSER_DEFAULT,
+ "Choose PHP parser",
+ 1,
+ new String[][] {
+ {"Internal parser",
+ IPreferenceConstants.PHP_INTERNAL_PARSER
+ },
+ {"External parser",
+ IPreferenceConstants.PHP_EXTERNAL_PARSER
+ }
+ },
+ this.getFieldEditorParent());
+
+ BooleanFieldEditor parseOnSave =
+ new BooleanFieldEditor(PHPeclipsePlugin.PHP_PARSE_ON_SAVE, "&Parse automatically on save", getFieldEditorParent());
+
+
+
addField(localhost);
addField(documentRoot);
addField(useExternalBrowser);
addField(restartApache);
addField(externalParser);
+
+ addField(chooseParser);
+ addField(parseOnSave);
}
/**