X-Git-Url: http://secure.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 f2d2a1d..6f6d150 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 @@ -1,64 +1,66 @@ +/************************************************************************* + * @author Ali Echihabi (ali_echihabi@ieee.org, ali.echihabi@souss.ca) + * + * Plugin for PHP unit Testing. + * www.phpeclipse.de + * + *************************************************************************/ + package net.sourceforge.phpeclipse.phpunit.preferences; -import org.eclipse.jface.preference.*; -import org.eclipse.ui.IWorkbenchPreferencePage; -import org.eclipse.ui.IWorkbench; 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.ui.IWorkbench; +import org.eclipse.ui.IWorkbenchPreferencePage; /** - * This class represents a preference page that - * is contributed to the Preferences dialog. By - * subclassing FieldEditorPreferencePage, we - * can use the field support built into JFace that allows - * us to create a page that is small and knows how to - * save, restore and apply itself. + * This class represents a preference page that is contributed to the + * Preferences dialog. By subclassing FieldEditorPreferencePage, + * we can use the field support built into JFace that allows us to create a page + * that is small and knows how to save, restore and apply itself. *

- * This page is used to modify preferences only. They - * are stored in the preference store that belongs to - * the main plug-in class. That way, preferences can - * be accessed directly via the preference store. + * This page is used to modify preferences only. They are stored in the + * preference store that belongs to the main plug-in class. That way, + * preferences can be accessed directly via the preference store. */ -public class PHPUnitPreferencePage - extends FieldEditorPreferencePage - implements IWorkbenchPreferencePage { - - - public static final String PHPUNIT_PATH = "PHPUnitPathPreference"; +public class PHPUnitPreferencePage extends FieldEditorPreferencePage implements + IWorkbenchPreferencePage { + public static final String PHPUNIT_PATH = "PHPUnitPathPreference"; public PHPUnitPreferencePage() { super(GRID); 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(); - } - -/** - * Creates the field editors. Field editors are abstractions of - * the common GUI blocks needed to manipulate various types - * of preferences. Each field editor knows how to save and - * restore itself. - */ + /** + * Sets the default values of the preferences. + */ +// private void initializeDefaults() { +// //IPreferenceStore store = getPreferenceStore(); +// +// } - public void createFieldEditors() { + /** + * Creates the field editors. Field editors are abstractions of the common + * GUI blocks needed to manipulate various types of preferences. Each field + * editor knows how to save and restore itself. + */ - addField(new DirectoryFieldEditor(PHPUNIT_PATH, - "&PHPUnit Path:", getFieldEditorParent())); - + public void createFieldEditors() { + addField(new DirectoryFieldEditor(PHPUNIT_PATH, "&PHPUnit Path:", + getFieldEditorParent())); } - + public void init(IWorkbench workbench) { - + } } \ No newline at end of file