package net.sourceforge.phpeclipse.phpunit.preferences;
+//import net.sourceforge.phpeclipse.externaltools.ExternalToolsPlugin;
import net.sourceforge.phpeclipse.phpunit.PHPUnitPlugin;
import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
-import org.eclipse.jface.preference.IPreferenceStore;
+//import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
public PHPUnitPreferencePage() {
super(GRID);
- setPreferenceStore(PHPUnitPlugin.getDefault().getPreferenceStore());
+
+ if (PHPUnitPlugin.getDefault () != null) {
+ setPreferenceStore (PHPUnitPlugin.getDefault().getPreferenceStore());
+ }
+
setDescription("Please browse for the folder containing the PHPUnit files (among them: \"phpunit.php\" and \"socketTestResult.php\"). If you don't have it, please download the latest version from http://sourceforge.net/projects/phpunit/ first. ");
- initializeDefaults();
+ //initializeDefaults();
}
/**
* Sets the default values of the preferences.
*/
- private void initializeDefaults() {
- IPreferenceStore store = getPreferenceStore();
-
- }
+// private void initializeDefaults() {
+// //IPreferenceStore store = getPreferenceStore();
+//
+// }
/**
* Creates the field editors. Field editors are abstractions of the common