protected Button useDefaultWorkingDirectoryButton;
+ private class ArgumentsTabListener extends SelectionAdapter implements
+ ModifyListener {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
+ */
+ public void modifyText(ModifyEvent e) {
+ updateLaunchConfigurationDialog();
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
+ */
+ public void widgetSelected(SelectionEvent e) {
+ updateLaunchConfigurationDialog();
+ }
+
+ }
+
+ private ArgumentsTabListener fListener = new ArgumentsTabListener();
+
public PHPArgumentsTab() {
super();
}
.getString("LaunchConfigurationTab.PHPArguments.working_dir_browser_message"));
workingDirectorySelector.setLayoutData(new GridData(
GridData.FILL_HORIZONTAL));
- workingDirectorySelector.addModifyListener(new ModifyListener() {
- public void modifyText(ModifyEvent e) {
- updateLaunchConfigurationDialog();
- }
- });
+ workingDirectorySelector.addModifyListener(fListener);
Composite defaultWorkingDirectoryComposite = new Composite(
grpWorkingDir, SWT.NONE);
.getSelection());
}
});
+ useDefaultWorkingDirectoryButton.addSelectionListener(fListener);
+
new Label(defaultWorkingDirectoryComposite, SWT.NONE)
.setText(PHPDebugUiMessages
.getString("LaunchConfigurationTab.PHPArguments.working_dir_use_default_message"));
defaultWorkingDirectoryComposite.pack();
+ workingDirectorySelector.addModifyListener(fListener);
+
// new Label(composite, SWT.NONE)
// .setText(PHPDebugUiMessages
// .getString("LaunchConfigurationTab.PHPArguments.interpreter_args_box_title"));
interpreterArgsText = new Text(grpArgs, SWT.MULTI | SWT.V_SCROLL
| SWT.BORDER | SWT.WRAP);
interpreterArgsText.setLayoutData(new GridData(GridData.FILL_BOTH));
+ interpreterArgsText.addModifyListener(fListener);
+
// new Label(composite, SWT.NONE)
// .setText(PHPDebugUiMessages
// .getString("LaunchConfigurationTab.PHPArguments.program_args_box_title"));
programArgsText = new Text(grpProgArgs, SWT.MULTI | SWT.V_SCROLL
| SWT.BORDER | SWT.WRAP);
programArgsText.setLayoutData(new GridData(GridData.FILL_BOTH));
+ programArgsText.addModifyListener(fListener);
}
protected void setUseDefaultWorkingDirectory(boolean useDefault) {