protected java.util.List installedInterpretersWorkingCopy;
- protected Combo interpreterCombo;
+ protected Combo interpreterCombo;
// protected Button loadPathDefaultButton;
- protected Button fRemoteDebugCheckBox;
-
- protected Button fRemoteDebugTranslate;
-
- protected Button fOpenDBGSessionInBrowserCheckBox;
-
- protected Button fOpenDBGSessionInExternalBrowserCheckBox;
-
- protected Button fPathMapRemoveButton;
-
- protected Button fPathMapAddButton;
-
- protected Button fPathMapEditButton;
-
- protected Text fRemoteSourcePath;
-
- protected Table fRemoteDebugPathMapTable;
-
+ protected Button fRemoteDebugCheckBox;
+ protected Button fRelaunchOnScriptTerminationCheckBox;
+ protected Button fRemoteDebugTranslate;
+ protected Button fOpenDBGSessionInBrowserCheckBox;
+ protected Button fOpenDBGSessionInExternalBrowserCheckBox;
+ protected Button fPathMapRemoveButton;
+ protected Button fPathMapAddButton;
+ protected Button fPathMapEditButton;
+ protected Text fRemoteSourcePath;
+ protected Table fRemoteDebugPathMapTable;
protected TabFolder tabFolder;
private Text targetFile;
/*
* (non-Javadoc)
- *
+ *
* @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
*/
public void modifyText(ModifyEvent e) {
/*
* (non-Javadoc)
- *
+ *
* @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*/
public void widgetSelected(SelectionEvent e) {
handlePathMapRemoveButtonSelected();
} else if (source == fRemoteDebugCheckBox) {
setRemoteTabEnableState();
+ } else if (source == fRelaunchOnScriptTerminationCheckBox) {
+ setRemoteTabEnableState();
} else if (source == fRemoteDebugTranslate) {
setRemoteTabEnableState();
} else if (source == fOpenDBGSessionInBrowserCheckBox) {
}
- private static final String EMPTY_STRING = ""; //$NON-NLS-1$
-
- private RemoteDebugTabListener fListener = new RemoteDebugTabListener();
-
- 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;
-
- private static final boolean DEFAULT_OPEN_DBGSESSION_IN_EXTERNAL_BROWSER = false;
+ private static final String EMPTY_STRING = ""; //$NON-NLS-1$
+ private RemoteDebugTabListener fListener = new RemoteDebugTabListener();
+ 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;
+ private static final boolean DEFAULT_OPEN_DBGSESSION_IN_EXTERNAL_BROWSER = false;
+ private static final boolean DEFAULT_RELAUNCH_ON_SCRIPT_TERMINATION = true;
static String[] columnTitles = {
PHPDebugUiMessages
.addSelectionListener(fListener);
// addendum
+ fRelaunchOnScriptTerminationCheckBox = new Button (comp, SWT.CHECK);
+ fRelaunchOnScriptTerminationCheckBox
+ .setText (PHPDebugUiMessages
+ .getString ("LaunchConfigurationTab.PHPEnvironment.remoteDebugTab.RelaunchOnScriptTermination.label"));
+ fRelaunchOnScriptTerminationCheckBox.setLayoutData (new GridData (GridData.HORIZONTAL_ALIGN_BEGINNING));
+ fRelaunchOnScriptTerminationCheckBox.addSelectionListener (fListener);
+
label = new Label(comp, SWT.NONE);
label
.setText(PHPDebugUiMessages
*/
private void setRemoteTabEnableState() {
boolean state = fRemoteDebugCheckBox.getSelection();
- fRemoteSourcePath.setEnabled(state);
- fRemoteDebugTranslate.setEnabled(state);
- fRemoteDebugPathMapTable.setEnabled(state);
+ fRemoteSourcePath.setEnabled (state);
+ fRemoteDebugTranslate.setEnabled (state);
+ fRemoteDebugPathMapTable.setEnabled (state);
+
if (!state) {
- fPathMapEditButton.setEnabled(false);
- fPathMapRemoveButton.setEnabled(false);
- fPathMapAddButton.setEnabled(false);
- fOpenDBGSessionInBrowserCheckBox.setEnabled(false);
- fOpenDBGSessionInExternalBrowserCheckBox.setEnabled(false);
+ fPathMapEditButton.setEnabled (false);
+ fPathMapRemoveButton.setEnabled (false);
+ fPathMapAddButton.setEnabled (false);
+ fOpenDBGSessionInBrowserCheckBox.setEnabled (false);
+ fOpenDBGSessionInExternalBrowserCheckBox.setEnabled (false);
} else {
- setPathMapButtonsEnableState();
+ setPathMapButtonsEnableState ();
}
- updateLaunchConfigurationDialog();
+ updateLaunchConfigurationDialog ();
}
/**
private void setPathMapButtonsEnableState() {
// just do nothing for now
//
- if (fRemoteDebugCheckBox.getSelection()) {
- fOpenDBGSessionInBrowserCheckBox.setEnabled(true);
+ if (fRemoteDebugCheckBox.getSelection ()) {
+ fOpenDBGSessionInBrowserCheckBox.setEnabled (true);
fOpenDBGSessionInExternalBrowserCheckBox
- .setEnabled(fOpenDBGSessionInBrowserCheckBox.getSelection());
- fRemoteDebugTranslate.setEnabled(true);
+ .setEnabled (fOpenDBGSessionInBrowserCheckBox.getSelection ());
+ fRemoteDebugTranslate.setEnabled (true);
+
int selectCount = this.fRemoteDebugPathMapTable
- .getSelectionIndices().length;
+ .getSelectionIndices ().length;
+
if (selectCount < 1) {
- fPathMapEditButton.setEnabled(false);
- fPathMapRemoveButton.setEnabled(false);
+ fPathMapEditButton.setEnabled (false);
+ fPathMapRemoveButton.setEnabled (false);
} else {
- fPathMapRemoveButton.setEnabled(true);
+ fPathMapRemoveButton.setEnabled (true);
+
if (selectCount == 1) {
- fPathMapEditButton.setEnabled(true);
+ fPathMapEditButton.setEnabled (true);
} else {
- fPathMapEditButton.setEnabled(false);
+ fPathMapEditButton.setEnabled (false);
}
}
- fPathMapAddButton.setEnabled(true);
+
+ fPathMapAddButton.setEnabled (true);
}
}
/**
* Show the specified dialog and update the pathMapTable table based on its
* results.
- *
+ *
* @param updateItem
* the item to update, or <code>null</code> if adding a new
* item
// loadPathDefaultButton.setLayoutData(new
// GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
// loadPathDefaultButton.addSelectionListener(getLoadPathDefaultButtonSelectionListener());
- //
+ //
// loadPathDefaultButton.setEnabled(false); //for now, until the load path
// is customizable on the configuration
// }
} catch (CoreException ce) {
fRemoteDebugCheckBox.setSelection(DEFAULT_REMOTE_DEBUG);
}
+
tabFolder.setSelection(fRemoteDebugCheckBox.getSelection() ? 0 : 1);
+
try {
fRemoteDebugTranslate.setSelection(configuration.getAttribute(
PHPLaunchConfigurationAttribute.REMOTE_DEBUG_TRANSLATE,
} catch (CoreException ce) {
fRemoteDebugTranslate.setSelection(DEFAULT_REMOTE_DEBUG_TRANSLATE);
}
+
try {
fOpenDBGSessionInBrowserCheckBox
.setSelection(configuration
fOpenDBGSessionInBrowserCheckBox
.setSelection(DEFAULT_OPEN_DBGSESSION_IN_BROWSER);
}
+
try {
fOpenDBGSessionInExternalBrowserCheckBox
.setSelection(configuration
DEFAULT_OPEN_DBGSESSION_IN_EXTERNAL_BROWSER));
} catch (CoreException ce) {
fOpenDBGSessionInExternalBrowserCheckBox
- .setSelection(DEFAULT_OPEN_DBGSESSION_IN_EXTERNAL_BROWSER);
+ .setSelection (DEFAULT_OPEN_DBGSESSION_IN_EXTERNAL_BROWSER);
+ }
+
+ try {
+ fRelaunchOnScriptTerminationCheckBox
+ .setSelection (configuration
+ .getAttribute (
+ PHPLaunchConfigurationAttribute.RELAUNCH_ON_SCRIPT_TERMINATION,
+ DEFAULT_RELAUNCH_ON_SCRIPT_TERMINATION));
+ } catch (CoreException ce) {
+ fRelaunchOnScriptTerminationCheckBox
+ .setSelection (DEFAULT_RELAUNCH_ON_SCRIPT_TERMINATION);
}
+
setRemoteTabEnableState();
try {
configuration.setAttribute(
PHPLaunchConfigurationAttribute.OPEN_DBGSESSION_IN_BROWSER,
fOpenDBGSessionInBrowserCheckBox.getSelection());
- configuration
- .setAttribute(
- PHPLaunchConfigurationAttribute.OPEN_DBGSESSION_IN_EXTERNAL_BROWSER,
- fOpenDBGSessionInExternalBrowserCheckBox.getSelection());
+ configuration.setAttribute(
+ PHPLaunchConfigurationAttribute.OPEN_DBGSESSION_IN_EXTERNAL_BROWSER,
+ fOpenDBGSessionInExternalBrowserCheckBox.getSelection());
+ configuration.setAttribute(
+ PHPLaunchConfigurationAttribute.RELAUNCH_ON_SCRIPT_TERMINATION,
+ fRelaunchOnScriptTerminationCheckBox.getSelection());
}
protected Composite createPageRoot(Composite parent) {
targetFile.setText(path);
}
-}
\ No newline at end of file
+}