X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/preferences/PHPUnitPreferencePage.java b/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/preferences/PHPUnitPreferencePage.java index b310b0c..8d8c1eb 100644 --- a/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/preferences/PHPUnitPreferencePage.java +++ b/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/preferences/PHPUnitPreferencePage.java @@ -8,6 +8,7 @@ package net.sourceforge.phpeclipse.phpunit.preferences; +//import net.sourceforge.phpeclipse.externaltools.ExternalToolsPlugin; import net.sourceforge.phpeclipse.phpunit.PHPUnitPlugin; import org.eclipse.jface.preference.DirectoryFieldEditor; @@ -34,7 +35,11 @@ public class PHPUnitPreferencePage extends FieldEditorPreferencePage implements 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(); }