1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

Bug 120509: CDebuggerTab invokes wong initialization code (in addition to right code).

This commit is contained in:
Mikhail Khodjaiants 2006-01-06 20:38:51 +00:00
parent d87a35dc00
commit 3646c58a41
3 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,8 @@
2006-01-06 Mikhail Khodjaiants
Bug 120509: CDebuggerTab invokes wong initialization code (in addition to right code).
* CDebuggerTab.java
* CoreFileDebuggerTab.java
2006-01-06 Mikhail Khodjaiants
Cleanup.
* CArgumentsTab.java

View file

@ -101,7 +101,7 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
attr.put(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_ENABLE_VARIABLE_BOOKKEEPING, varBookkeeping);
Boolean regBookkeeping = Boolean.valueOf( fRegBookKeeping.getSelection() );
attr.put(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_ENABLE_REGISTER_BOOKKEEPING, regBookkeeping);
updateLaunchConfigurationDialog();
update();
}
/*
@ -321,8 +321,10 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
/**
* @see org.eclipse.debug.ui.AbstractLaunchConfigurationTab#updateLaunchConfigurationDialog()
*/
protected void updateLaunchConfigurationDialog() {
super.updateLaunchConfigurationDialog();
protected void update() {
if (!isInitializing()) {
super.updateLaunchConfigurationDialog();
}
}
protected void createOptionsComposite(Composite parent) {
@ -336,9 +338,7 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
fStopInMain.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
if (!isInitializing()) {
updateLaunchConfigurationDialog();
}
update();
}
});
}

View file

@ -79,7 +79,7 @@ public class CoreFileDebuggerTab extends AbstractCDebuggerTab {
public void initializeFrom(ILaunchConfiguration config) {
setInitializing(true);
super.initializeFrom(config);
setLaunchConfiguration(config);
try {
String id = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_ID, ""); //$NON-NLS-1$
loadDebuggerComboBox(config, id);
@ -138,7 +138,7 @@ public class CoreFileDebuggerTab extends AbstractCDebuggerTab {
// select first exact matching debugger for platform or
// requested selection
String debuggerPlatform = debugConfigs[i].getPlatform();
if (defaultSelection == null && debuggerPlatform.equalsIgnoreCase(projectPlatform)) { //$NON-NLS-1$
if (defaultSelection == null && debuggerPlatform.equalsIgnoreCase(projectPlatform)) {
defaultSelection = debugConfigs[i].getID();
}
}