1
0
Fork 0
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:
Marc Khouzam 2007-12-11 19:30:59 +00:00
parent 11792cc9d5
commit 0488406d1c

View file

@ -290,7 +290,13 @@ public class VariableLayoutNode extends AbstractExpressionLayoutNode implements
} else if (IDebugVMConstants.COLUMN_ID__DESCRIPTION.equals(localColumns[idx])) {
update.setLabel("", 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);
}
}
}