import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
-
public class XDebugPreferencePage extends FieldEditorPreferencePage implements
IWorkbenchPreferencePage {
/* Preference page for the default XDebug-Settings */
-
+
public XDebugPreferencePage() {
super(FieldEditorPreferencePage.GRID);
// Set the preference store for the preference page.
- IPreferenceStore store =
- XDebugCorePlugin.getDefault().getPreferenceStore();
- store.setDefault(IXDebugPreferenceConstants.DEBUGPORT_PREFERENCE,IXDebugPreferenceConstants.DEFAULT_DEBUGPORT);
- // get the default form the externalToolsPlugin
- String interpreter=ExternalToolsPlugin.getDefault().getPreferenceStore().getString(ExternalToolsPlugin.PHP_RUN_PREF);
- store.setDefault(IXDebugPreferenceConstants.PHP_INTERPRETER_PREFERENCE,interpreter);
+ IPreferenceStore store = XDebugCorePlugin.getDefault()
+ .getPreferenceStore();
+ store.setDefault(IXDebugPreferenceConstants.DEBUGPORT_PREFERENCE,
+ IXDebugPreferenceConstants.DEFAULT_DEBUGPORT);
+ // get the default form the externalToolsPlugin
+ String interpreter = ExternalToolsPlugin.getDefault()
+ .getPreferenceStore().getString(
+ ExternalToolsPlugin.PHP_RUN_PREF);
+ store.setDefault(IXDebugPreferenceConstants.PHP_INTERPRETER_PREFERENCE,
+ interpreter);
setPreferenceStore(store);
}
}
protected void createFieldEditors() {
- IntegerFieldEditor debugPort = new IntegerFieldEditor(IXDebugPreferenceConstants.DEBUGPORT_PREFERENCE, "&Debugport:", getFieldEditorParent(),5);
- debugPort.setValidRange(1025,65535);
+ IntegerFieldEditor debugPort = new IntegerFieldEditor(
+ IXDebugPreferenceConstants.DEBUGPORT_PREFERENCE, "&Debugport:",
+ getFieldEditorParent(), 5);
+ debugPort.setValidRange(1025, 65535);
debugPort.setErrorMessage("Debugport must be between 1024 and 65536");
addField(debugPort);
-
- FileFieldEditor phpInterpreter = new FileFieldEditor(IXDebugPreferenceConstants.PHP_INTERPRETER_PREFERENCE, "PHP &Interpreter:",true,getFieldEditorParent());
- phpInterpreter.setErrorMessage("File not found");
- addField(phpInterpreter);
-
- }
-
+ FileFieldEditor phpInterpreter = new FileFieldEditor(
+ IXDebugPreferenceConstants.PHP_INTERPRETER_PREFERENCE,
+ "PHP &Interpreter:", true, getFieldEditorParent());
+ phpInterpreter.setErrorMessage("File not found");
+ addField(phpInterpreter);
+ }
}