Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CWatchExpressionDelegate.java')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CWatchExpressionDelegate.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CWatchExpressionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CWatchExpressionDelegate.java
index d1a917891d1..6ec95d842d9 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CWatchExpressionDelegate.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CWatchExpressionDelegate.java
@@ -24,6 +24,7 @@ public class CWatchExpressionDelegate implements IWatchExpressionDelegate {
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IWatchExpressionDelegate#evaluateExpression(java.lang.String, org.eclipse.debug.core.model.IDebugElement, org.eclipse.debug.core.model.IWatchExpressionListener)
*/
+ @Override
public void evaluateExpression( final String expression, IDebugElement context, final IWatchExpressionListener listener ) {
if ( !(context instanceof ICStackFrame) ) {
listener.watchEvaluationFinished( null );
@@ -31,6 +32,7 @@ public class CWatchExpressionDelegate implements IWatchExpressionDelegate {
}
final ICStackFrame frame = (ICStackFrame)context;
Runnable runnable = new Runnable() {
+ @Override
public void run() {
IValue value = null;
DebugException de = null;
@@ -50,14 +52,17 @@ public class CWatchExpressionDelegate implements IWatchExpressionDelegate {
protected IWatchExpressionResult evaluationComplete( final String expression, final IValue value, final DebugException de ) {
return new IWatchExpressionResult() {
+ @Override
public IValue getValue() {
return value;
}
+ @Override
public boolean hasErrors() {
return ( de != null );
}
+ @Override
public String getExpressionText() {
return expression;
}
@@ -65,10 +70,12 @@ public class CWatchExpressionDelegate implements IWatchExpressionDelegate {
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IWatchExpressionResult#getException()
*/
+ @Override
public DebugException getException() {
return de;
}
+ @Override
public String[] getErrorMessages() {
return ( de != null ) ? new String[] { de.getMessage() } : new String[0];
}

Back to the top