mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-23 16:23:52 +02:00
Bug 510924 - Alt+Enter on breakpoint shows incomplete properties dialog
When using the "Alt-Enter" shortcut with a breakpoint selected, the
properties dialog that is created is missing some fields. This seems to
be caused by the fact that the dialog, when summoned in this way, is
created using a wrong context: an ICLineBreakpoint instead of the
expected CBreakpointContext. That context is then used to fetch
properties from the store, which fails.
This is a naive fix that attempts to work around this by creating a
proper context from the breakpoint.
Change-Id: I2b7c86965d09898dd1cd7eeb3c3f704bb2995e20
(cherry picked from commit 86189eeb86
)
This commit is contained in:
parent
0e074ad3c1
commit
143f85b06e
3 changed files with 18 additions and 3 deletions
|
@ -979,7 +979,12 @@ public class CBreakpointPropertyPage extends FieldEditorPreferencePage implement
|
|||
*/
|
||||
@Override
|
||||
public void setElement( IAdaptable element ) {
|
||||
fElement = element;
|
||||
if (element instanceof ICBreakpoint) {
|
||||
fElement = new CBreakpointContext((ICBreakpoint)element, null);
|
||||
}
|
||||
else {
|
||||
fElement = element;
|
||||
}
|
||||
}
|
||||
|
||||
protected String[] getDebugModelIds() {
|
||||
|
|
|
@ -477,7 +477,12 @@ public class GDBDynamicPrintfPropertyPage extends FieldEditorPreferencePage impl
|
|||
*/
|
||||
@Override
|
||||
public void setElement(IAdaptable element) {
|
||||
fElement = element;
|
||||
if (element instanceof ICBreakpoint) {
|
||||
fElement = new CBreakpointContext((ICBreakpoint)element, null);
|
||||
}
|
||||
else {
|
||||
fElement = element;
|
||||
}
|
||||
}
|
||||
|
||||
protected String[] getDebugModelIds() {
|
||||
|
|
|
@ -476,7 +476,12 @@ public class GDBTracepointPropertyPage extends FieldEditorPreferencePage impleme
|
|||
*/
|
||||
@Override
|
||||
public void setElement(IAdaptable element) {
|
||||
fElement = element;
|
||||
if (element instanceof ICBreakpoint) {
|
||||
fElement = new CBreakpointContext((ICBreakpoint)element, null);
|
||||
}
|
||||
else {
|
||||
fElement = element;
|
||||
}
|
||||
}
|
||||
|
||||
protected String[] getDebugModelIds() {
|
||||
|
|
Loading…
Add table
Reference in a new issue