|
Lines 10-15
Link Here
|
| 10 |
*******************************************************************************/ |
10 |
*******************************************************************************/ |
| 11 |
package org.eclipse.cdt.dsf.gdb.internal.ui.preferences; |
11 |
package org.eclipse.cdt.dsf.gdb.internal.ui.preferences; |
| 12 |
|
12 |
|
|
|
13 |
import org.eclipse.cdt.dsf.gdb.IGdbDebugConstants; |
| 13 |
import org.eclipse.cdt.dsf.gdb.internal.ui.GdbUIPlugin; |
14 |
import org.eclipse.cdt.dsf.gdb.internal.ui.GdbUIPlugin; |
| 14 |
import org.eclipse.jface.preference.BooleanFieldEditor; |
15 |
import org.eclipse.jface.preference.BooleanFieldEditor; |
| 15 |
import org.eclipse.jface.preference.FieldEditorPreferencePage; |
16 |
import org.eclipse.jface.preference.FieldEditorPreferencePage; |
|
Lines 41-47
Link Here
|
| 41 |
@Override |
42 |
@Override |
| 42 |
public void createControl(Composite parent) { |
43 |
public void createControl(Composite parent) { |
| 43 |
super.createControl(parent); |
44 |
super.createControl(parent); |
| 44 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IGdbDebugPreferenceConstants.PREFERENCE_PAGE); |
45 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IGdbDebugConstants.PREFERENCE_PAGE); |
| 45 |
} |
46 |
} |
| 46 |
|
47 |
|
| 47 |
@Override |
48 |
@Override |
|
Lines 51-72
Link Here
|
| 51 |
layout.marginWidth= 0; |
52 |
layout.marginWidth= 0; |
| 52 |
parent.setLayout(layout); |
53 |
parent.setLayout(layout); |
| 53 |
|
54 |
|
| 54 |
Group tracesGroup= new Group(parent, SWT.NONE); |
55 |
Group group= new Group(parent, SWT.NONE); |
| 55 |
tracesGroup.setText(MessagesForPreferences.GdbDebugPreferencePage_traces_label); |
56 |
group.setText(MessagesForPreferences.GdbDebugPreferencePage_traces_label); |
| 56 |
GridLayout groupLayout= new GridLayout(3, false); |
57 |
GridLayout groupLayout= new GridLayout(3, false); |
| 57 |
tracesGroup.setLayout(groupLayout); |
58 |
group.setLayout(groupLayout); |
| 58 |
tracesGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); |
59 |
group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); |
| 59 |
|
60 |
|
| 60 |
BooleanFieldEditor traces= new BooleanFieldEditor( |
61 |
BooleanFieldEditor boolField= new BooleanFieldEditor( |
| 61 |
IGdbDebugPreferenceConstants.PREF_TRACES_ENABLE, |
62 |
IGdbDebugConstants.PREF_TRACES_ENABLE, |
| 62 |
MessagesForPreferences.GdbDebugPreferencePage_enableTraces_label, |
63 |
MessagesForPreferences.GdbDebugPreferencePage_enableTraces_label, |
| 63 |
tracesGroup); |
64 |
group); |
| 64 |
|
65 |
|
| 65 |
traces.fillIntoGrid(tracesGroup, 3); |
66 |
boolField.fillIntoGrid(group, 3); |
| 66 |
addField(traces); |
67 |
addField(boolField); |
|
|
68 |
// need to set layout again |
| 69 |
group.setLayout(groupLayout); |
| 70 |
|
| 71 |
group= new Group(parent, SWT.NONE); |
| 72 |
group.setText(MessagesForPreferences.GdbDebugPreferencePage_termination_label); |
| 73 |
groupLayout= new GridLayout(3, false); |
| 74 |
group.setLayout(groupLayout); |
| 75 |
group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); |
| 76 |
|
| 77 |
boolField= new BooleanFieldEditor( |
| 78 |
IGdbDebugConstants.PREF_AUTO_TERMINATE_GDB, |
| 79 |
MessagesForPreferences.GdbDebugPreferencePage_autoTerminateGdb_label, |
| 80 |
group); |
| 67 |
|
81 |
|
|
|
82 |
boolField.fillIntoGrid(group, 3); |
| 83 |
addField(boolField); |
| 68 |
// need to set layout again |
84 |
// need to set layout again |
| 69 |
tracesGroup.setLayout(groupLayout); |
85 |
group.setLayout(groupLayout); |
|
|
86 |
|
| 70 |
} |
87 |
} |
| 71 |
|
88 |
|
| 72 |
@Override |
89 |
@Override |