|
Lines 45-50
Link Here
|
| 45 |
import org.eclipse.swt.widgets.Group; |
45 |
import org.eclipse.swt.widgets.Group; |
| 46 |
import org.eclipse.swt.widgets.Label; |
46 |
import org.eclipse.swt.widgets.Label; |
| 47 |
import org.eclipse.swt.widgets.Text; |
47 |
import org.eclipse.swt.widgets.Text; |
|
|
48 |
import org.eclipse.ui.PlatformUI; |
| 48 |
|
49 |
|
| 49 |
/** |
50 |
/** |
| 50 |
* @since 6.0 |
51 |
* @since 6.0 |
|
Lines 60-65
Link Here
|
| 60 |
private Text portNumber; |
61 |
private Text portNumber; |
| 61 |
private Combo jtagDevice; |
62 |
private Combo jtagDevice; |
| 62 |
private String savedJtagDevice; |
63 |
private String savedJtagDevice; |
|
|
64 |
protected Button fUpdateThreadlistOnSuspend; |
| 63 |
|
65 |
|
| 64 |
public String getName() { |
66 |
public String getName() { |
| 65 |
return TAB_NAME; |
67 |
return TAB_NAME; |
|
Lines 89-94
Link Here
|
| 89 |
|
91 |
|
| 90 |
createCommandControl(group); |
92 |
createCommandControl(group); |
| 91 |
createRemoteControl(comp); |
93 |
createRemoteControl(comp); |
|
|
94 |
|
| 95 |
fUpdateThreadlistOnSuspend = new Button(comp, SWT.CHECK); |
| 96 |
fUpdateThreadlistOnSuspend.setText(Messages.getString("GDBJtagDebuggerTab.update_thread_list_on_suspend")); |
| 97 |
fUpdateThreadlistOnSuspend .addSelectionListener(new SelectionAdapter() { |
| 98 |
@Override |
| 99 |
public void widgetSelected(SelectionEvent e) { |
| 100 |
updateLaunchConfigurationDialog(); |
| 101 |
} |
| 102 |
}); |
| 103 |
// This checkbox needs an explanation. Attach context help to it. |
| 104 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(fUpdateThreadlistOnSuspend, "org.eclipse.cdt.dsf.gdb.ui.update_threadlist_button_context"); //$NON-NLS-1$ |
| 92 |
} |
105 |
} |
| 93 |
|
106 |
|
| 94 |
private void browseButtonSelected(String title, Text text) { |
107 |
private void browseButtonSelected(String title, Text text) { |
|
Lines 276-281
Link Here
|
| 276 |
jtagDevice.select(i); |
289 |
jtagDevice.select(i); |
| 277 |
} |
290 |
} |
| 278 |
} |
291 |
} |
|
|
292 |
boolean updateThreadsOnSuspend = configuration.getAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_UPDATE_THREADLIST_ON_SUSPEND, |
| 293 |
IGDBLaunchConfigurationConstants.DEBUGGER_UPDATE_THREADLIST_ON_SUSPEND_DEFAULT); |
| 294 |
fUpdateThreadlistOnSuspend.setSelection(updateThreadsOnSuspend); |
| 279 |
} catch (CoreException e) { |
295 |
} catch (CoreException e) { |
| 280 |
Activator.getDefault().getLog().log(e.getStatus()); |
296 |
Activator.getDefault().getLog().log(e.getStatus()); |
| 281 |
} |
297 |
} |
|
Lines 303-308
Link Here
|
| 303 |
} catch (NumberFormatException e) { |
319 |
} catch (NumberFormatException e) { |
| 304 |
configuration.setAttribute(IGDBJtagConstants.ATTR_PORT_NUMBER, 0); |
320 |
configuration.setAttribute(IGDBJtagConstants.ATTR_PORT_NUMBER, 0); |
| 305 |
} |
321 |
} |
|
|
322 |
configuration.setAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_UPDATE_THREADLIST_ON_SUSPEND, |
| 323 |
fUpdateThreadlistOnSuspend.getSelection()); |
| 306 |
} |
324 |
} |
| 307 |
|
325 |
|
| 308 |
public void setDefaults(ILaunchConfigurationWorkingCopy configuration) { |
326 |
public void setDefaults(ILaunchConfigurationWorkingCopy configuration) { |
|
Lines 318-323
Link Here
|
| 318 |
IGDBJtagConstants.DEFAULT_USE_REMOTE_TARGET); |
336 |
IGDBJtagConstants.DEFAULT_USE_REMOTE_TARGET); |
| 319 |
configuration.setAttribute(IGDBJtagConstants.ATTR_IP_ADDRESS, IGDBJtagConstants.DEFAULT_IP_ADDRESS); |
337 |
configuration.setAttribute(IGDBJtagConstants.ATTR_IP_ADDRESS, IGDBJtagConstants.DEFAULT_IP_ADDRESS); |
| 320 |
configuration.setAttribute(IGDBJtagConstants.ATTR_PORT_NUMBER, IGDBJtagConstants.DEFAULT_PORT_NUMBER); |
338 |
configuration.setAttribute(IGDBJtagConstants.ATTR_PORT_NUMBER, IGDBJtagConstants.DEFAULT_PORT_NUMBER); |
|
|
339 |
configuration.setAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_UPDATE_THREADLIST_ON_SUSPEND, |
| 340 |
IGDBLaunchConfigurationConstants.DEBUGGER_UPDATE_THREADLIST_ON_SUSPEND_DEFAULT); |
| 321 |
} |
341 |
} |
| 322 |
|
342 |
|
| 323 |
} |
343 |
} |