mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
FBefore setting the expression, we first check if it is a top-level expression,
in which case, we use the full expression string.
This commit is contained in:
parent
11792cc9d5
commit
0488406d1c
1 changed files with 7 additions and 1 deletions
|
@ -290,7 +290,13 @@ public class VariableLayoutNode extends AbstractExpressionLayoutNode implements
|
||||||
} else if (IDebugVMConstants.COLUMN_ID__DESCRIPTION.equals(localColumns[idx])) {
|
} else if (IDebugVMConstants.COLUMN_ID__DESCRIPTION.equals(localColumns[idx])) {
|
||||||
update.setLabel("", idx);
|
update.setLabel("", idx);
|
||||||
} else if (IDebugVMConstants.COLUMN_ID__EXPRESSION.equals(localColumns[idx])) {
|
} else if (IDebugVMConstants.COLUMN_ID__EXPRESSION.equals(localColumns[idx])) {
|
||||||
update.setLabel(getData().getName(), idx);
|
IVMContext vmc = (IVMContext)update.getElement();
|
||||||
|
IExpression expression = (IExpression)vmc.getAdapter(IExpression.class);
|
||||||
|
if (expression != null) {
|
||||||
|
update.setLabel(expression.getExpressionText(), idx);
|
||||||
|
} else {
|
||||||
|
update.setLabel(getData().getName(), idx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue