public class PHPEclipseBasePreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
StringFieldEditor phpParserExtensionsSFE;
-
+ StringFieldEditor xamppStartSFE;
+ StringFieldEditor xamppStopSFE;
StringFieldEditor apacheStartSFE;
StringFieldEditor apacheStopSFE;
protected void performDefaults() {
phpParserExtensionsSFE.loadDefault();
+ xamppStartSFE.loadDefault();
+ xamppStopSFE.loadDefault();
apacheStartSFE.loadDefault();
apacheStopSFE.loadDefault();
apacheRestartSFE.loadDefault();
}
public boolean performOk() {
- PHPFileUtil.setExtensins(null);
+ PHPFileUtil.setExtensions(null);
phpParserExtensionsSFE.store();
+ xamppStartSFE.store();
+ xamppStopSFE.store();
apacheStartSFE.store();
apacheStopSFE.store();
apacheRestartSFE.store();
apacheSettingsGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
apacheSettingsGroup.setLayout(new GridLayout());
+
+ xamppStartSFE = new StringFieldEditor(IPreferenceConstants.XAMPP_START_PREF, PHPPreferencesMessages
+ .getString("PHPBasePreferencePage.apacheGroup.xampp_start"), apacheSettingsGroup);
+ xamppStartSFE.setPreferencePage(this);
+ xamppStartSFE.setPreferenceStore(getPreferenceStore());
+ xamppStartSFE.load();
+ new Label(apacheSettingsGroup, SWT.NONE);
+
+ xamppStopSFE = new StringFieldEditor(IPreferenceConstants.XAMPP_STOP_PREF, PHPPreferencesMessages
+ .getString("PHPBasePreferencePage.apacheGroup.xampp_stop"), apacheSettingsGroup);
+ xamppStopSFE.setPreferencePage(this);
+ xamppStopSFE.setPreferenceStore(getPreferenceStore());
+ xamppStopSFE.load();
+ new Label(apacheSettingsGroup, SWT.NONE);
+
apacheStartBFE = new BooleanFieldEditor(PHPeclipsePlugin.APACHE_START_BACKGROUND, PHPPreferencesMessages
.getString("PHPBasePreferencePage.apacheGroup.start_background"), apacheSettingsGroup);
apacheStartBFE.setPreferencePage(this);