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());
+
+ BooleanFieldEditor outlineShowClass =
+ new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_CLASS, "Show classes in outline", getFieldEditorParent());
+ BooleanFieldEditor outlineShowFunc =
+ new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_FUNC, "Show functions in outline", getFieldEditorParent());
+ BooleanFieldEditor outlineShowVar =
+ new BooleanFieldEditor(PHPeclipsePlugin.PHP_OUTLINE_VAR, "Show variables in outline", getFieldEditorParent());
+
+
addField(localhost);
addField(documentRoot);
addField(useExternalBrowser);
addField(restartApache);
addField(externalParser);
+
+ addField(chooseParser);
+ addField(parseOnSave);
+ addField(outlineShowClass) ;
+ addField(outlineShowFunc);
+ addField(outlineShowVar);
}
/**