public interface IWatchExpression extends IErrorReportingExpression
Clients are not intended to implement this interface. An implementation
is provided by the debug platform. Clients that support watch expressions
should contribute and implement a watch expression delegate. Watch
expressions can be created via the IExpressionManager.
IWatchExpressionDelegate,
IExpressionManager| Modifier and Type | Method and Description |
|---|---|
void |
evaluate()
Updates this watch expression's value based on the current evaluation
context.
|
boolean |
isEnabled()
Returns whether this expression is enabled.
|
boolean |
isPending()
Returns whether the result of this watch expression is pending.
|
void |
setEnabled(boolean enabled)
Sets this expression's enabled state.
|
void |
setExpressionContext(IDebugElement context)
Sets the context for this watch expression, or
null if none. |
void |
setExpressionText(String expressionText)
Sets this watch expression's snippet of code.
|
getErrorMessages, hasErrorsdispose, getDebugTarget, getExpressionText, getValuegetLaunch, getModelIdentifiergetAdaptervoid evaluate()
void setExpressionContext(IDebugElement context)
null if none.
If the given context is valid for this expression, this expression may
update its value. When the value update is complete, a debug change event is
fired. When null is specified as a context, this expression
may choose to retain its previous value.
The context is usually one of (but not limited to):
IDebugTarget)IThread)IStackFrame)context - context in which to update this expression's value, or
null if nonevoid setExpressionText(String expressionText)
expressionText - the snippet which will be evaluatedboolean isPending()
boolean isEnabled()
void setEnabled(boolean enabled)
enabled - whether this expression should be enabledGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.