|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IExpressionManager
The expression manager manages the collection of registered expressions in the workspace. An expression is a snippet of code that can be evaluated to produce a value. Expression creation and evaluation are client responsibilities.
Clients interested in expression change notification may
register with the expression manager - see
IExpressionListener
and IExpressionsListener
.
This interface is not intended to be implemented by clients.
IExpression
,
IExpressionListener
,
IExpressionsListener
Method Summary | |
---|---|
void |
addExpression(IExpression expression)
Adds the given expression to the collection of registered expressions in the workspace and notifies all registered listeners. |
void |
addExpressionListener(IExpressionListener listener)
Adds the given listener to the collection of registered expression listeners. |
void |
addExpressionListener(IExpressionsListener listener)
Adds the given listener to the collection of registered expression listeners. |
void |
addExpressions(IExpression[] expressions)
Adds the given expressions to the collection of registered expressions in the workspace and notifies all registered listeners. |
IExpression[] |
getExpressions()
Returns a collection of all registered expressions, possibly empty. |
IExpression[] |
getExpressions(java.lang.String modelIdentifier)
Returns a collection of all expressions registered for the given debug model,possibly empty. |
boolean |
hasExpressions()
Returns whether there are any registered expressions |
boolean |
hasWatchExpressionDelegate(java.lang.String id)
Returns whether a watch expression delegate has been contributed for the given debug model. |
IWatchExpression |
newWatchExpression(java.lang.String expressionText)
Creates and returns a new watch expression with the given text. |
IWatchExpressionDelegate |
newWatchExpressionDelegate(java.lang.String id)
Returns a new watch expression delegate for the given debug model or null if no delegate is available. |
void |
removeExpression(IExpression expression)
Removes the given expression from the expression manager, and notifies all registered listeners. |
void |
removeExpressionListener(IExpressionListener listener)
Removes the given listener from the collection of registered expression listeners. |
void |
removeExpressionListener(IExpressionsListener listener)
Removes the given listener from the collection of registered expression listeners. |
void |
removeExpressions(IExpression[] expressions)
Removes the given expressions from the collection of registered expressions in the workspace and notifies all registered listeners. |
Method Detail |
---|
void addExpression(IExpression expression)
expression
- the expression to addvoid addExpressions(IExpression[] expressions)
expressions
- the expressions to addIWatchExpression newWatchExpression(java.lang.String expressionText)
expressionText
- the text for the new expressionIExpression[] getExpressions()
boolean hasExpressions()
IExpression[] getExpressions(java.lang.String modelIdentifier)
modelIdentifier
- identifier of a debug model plug-in
void removeExpression(IExpression expression)
expression
- the expression to removevoid removeExpressions(IExpression[] expressions)
expressions
- the expressions to removevoid addExpressionListener(IExpressionListener listener)
listener
- the listener to addvoid removeExpressionListener(IExpressionListener listener)
listener
- the listener to removevoid addExpressionListener(IExpressionsListener listener)
listener
- the listener to addvoid removeExpressionListener(IExpressionsListener listener)
listener
- the listener to removeIWatchExpressionDelegate newWatchExpressionDelegate(java.lang.String id)
null
if no delegate is available.
id
- the unique identifier of a debug model for which a
watch expression delegate has been contributed
null
if noneIWatchExpressionDelegate
boolean hasWatchExpressionDelegate(java.lang.String id)
id
- the unique identifier of a debug model
IWatchExpressionDelegate
|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.