/* Preference page for the default XDebug-Settings */
+ private IntegerFieldEditor debugPort;
+
public XDebugPreferencePage() {
super(FieldEditorPreferencePage.GRID);
}
protected void createFieldEditors() {
- IntegerFieldEditor debugPort = new IntegerFieldEditor(IXDebugPreferenceConstants.DEBUGPORT_PREFERENCE, "&Debugport:", getFieldEditorParent(),5);
+ debugPort = new IntegerFieldEditor(IXDebugPreferenceConstants.DEBUGPORT_PREFERENCE, "&Debugport:", getFieldEditorParent(),5);
debugPort.setValidRange(1025,65535);
+
debugPort.setErrorMessage("Debugport must be between 1024 and 65536");
addField(debugPort);
addField(phpInterpreter);
}
+
+ public void performApply() {
+ super.performApply();
+ //XDebugCorePlugin.getDefault().setProxyPort(debugPort.getIntValue());
+ }