From bc990e09bac1353be789002d65aa2a5555817a4c Mon Sep 17 00:00:00 2001 From: Pawel Piech Date: Thu, 7 Jun 2007 21:20:22 +0000 Subject: [PATCH] Applied implementation of service from DSF Coding Camp (bug 159696). --- .../dd/dsf/debug/service/IExpressions.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/IExpressions.java b/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/IExpressions.java index c4f2121246f..a23ac975104 100644 --- a/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/IExpressions.java +++ b/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/IExpressions.java @@ -30,9 +30,22 @@ public interface IExpressions extends IDMService, IFormattedValues { /** * Expression context. Since some expressions have children, expression contexts can be have an - * arbitrary number of parents of type ExpressionContext. + * arbitrary number of parents of type IExpressionDMContext. */ public interface IExpressionDMContext extends IFormattedDataDMContext { + /** + * Returns a fully qualified expression string represented by this context. This + * expression string is the same as the string that is sent to the debug engine to be + * evaluated in context of a stack frame, thread, or a symbol context. + * @return + */ + String getQualifiedExpression(); + + /** + * If this expression is a sub-expression of another expression, this method returns + * the expression relative to the parent of this expression. Otherwise this method + * will return the same string as {@link #getQualifiedExpression()}. + */ String getExpression(); }