// protected Button loadPathDefaultButton;
protected Button fRemoteDebugCheckBox;
+ protected Button fRemoteDebugTranslate;
protected Button fOpenDBGSessionInBrowserCheckBox;
handlePathMapRemoveButtonSelected();
} else if (source == fRemoteDebugCheckBox) {
setRemoteTabEnableState();
+ } else if (source == fRemoteDebugTranslate) {
+ setRemoteTabEnableState();
} else {
updateLaunchConfigurationDialog();
;
private static final boolean DEFAULT_REMOTE_DEBUG = false;
+ private static final boolean DEFAULT_REMOTE_DEBUG_TRANSLATE = false;
+
private static final boolean DEFAULT_OPEN_DBGSESSION_IN_BROWSER = true;
static String[] columnTitles = {
fRemoteDebugCheckBox.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
fRemoteDebugCheckBox.addSelectionListener(fListener);
+ fRemoteDebugTranslate = new Button(comp, SWT.CHECK);
+ fRemoteDebugTranslate.setText(PHPDebugUiMessages
+ .getString("LaunchConfigurationTab.PHPEnvironment.remoteDebugTab.RemoteTranslate.label"));
+ fRemoteDebugTranslate.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
+ fRemoteDebugTranslate.addSelectionListener(fListener);
+
fOpenDBGSessionInBrowserCheckBox = new Button(comp, SWT.CHECK);
fOpenDBGSessionInBrowserCheckBox.setText(PHPDebugUiMessages
.getString("LaunchConfigurationTab.PHPEnvironment.remoteDebugTab.OpenDBGSessionInBrowserCheckBox.label"));
private void setRemoteTabEnableState() {
boolean state = fRemoteDebugCheckBox.getSelection();
fRemoteSourcePath.setEnabled(state);
-
+ fRemoteDebugTranslate.setEnabled(state);
+
fRemoteDebugPathMapTable.setEnabled(state);
if (!state) {
fPathMapEditButton.setEnabled(false);
//
if (fRemoteDebugCheckBox.getSelection()) {
fOpenDBGSessionInBrowserCheckBox.setEnabled(true);
+ fRemoteDebugTranslate.setEnabled(true);
int selectCount = this.fRemoteDebugPathMapTable.getSelectionIndices().length;
if (selectCount < 1) {
fPathMapEditButton.setEnabled(false);
fRemoteDebugCheckBox.setSelection(DEFAULT_REMOTE_DEBUG);
}
try {
+ fRemoteDebugTranslate.setSelection(configuration.getAttribute(
+ PHPLaunchConfigurationAttribute.REMOTE_DEBUG_TRANSLATE, DEFAULT_REMOTE_DEBUG_TRANSLATE));
+ } catch (CoreException ce) {
+ fRemoteDebugTranslate.setSelection(DEFAULT_REMOTE_DEBUG_TRANSLATE);
+ }
+ try {
fOpenDBGSessionInBrowserCheckBox.setSelection(configuration.getAttribute(
PHPLaunchConfigurationAttribute.OPEN_DBGSESSION_IN_BROWSER, DEFAULT_OPEN_DBGSESSION_IN_BROWSER));
} catch (CoreException ce) {
// }
configuration.setAttribute(PHPLaunchConfigurationAttribute.REMOTE_DEBUG, fRemoteDebugCheckBox.getSelection());
+ configuration.setAttribute(PHPLaunchConfigurationAttribute.REMOTE_DEBUG_TRANSLATE, fRemoteDebugTranslate.getSelection());
configuration.setAttribute(PHPLaunchConfigurationAttribute.FILE_MAP, getMapFromPathMapTable());
configuration.setAttribute(PHPLaunchConfigurationAttribute.REMOTE_PATH, fRemoteSourcePath.getText());
configuration.setAttribute(PHPLaunchConfigurationAttribute.OPEN_DBGSESSION_IN_BROWSER, fOpenDBGSessionInBrowserCheckBox