|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
.
This interface is not intended to be implemented by clients.
IExpression
,
IExpressionListener
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. |
IExpression[] |
getExpressions()
Returns a collection of all registered expressions, possibly empty. |
IExpression[] |
getExpressions(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 |
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. |
Method Detail |
public void addExpression(IExpression expression)
expression
- the expression to addpublic IExpression[] getExpressions()
public boolean hasExpressions()
public IExpression[] getExpressions(String modelIdentifier)
modelIdentifier
- identifier of a debug model plug-in
public void removeExpression(IExpression expression)
expression
- the expression to removepublic void addExpressionListener(IExpressionListener listener)
listener
- the listener to addpublic void removeExpressionListener(IExpressionListener listener)
listener
- the listener to remove
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |