|
Eclipse Platform Release 3.1 |
|||||||||||
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
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(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(String id)
Returns whether a watch expression delegate has been contributed for the given debug model. |
IWatchExpression |
newWatchExpression(String expressionText)
Creates and returns a new watch expression with the given text. |
IWatchExpressionDelegate |
newWatchExpressionDelegate(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 |
public void addExpression(IExpression expression)
expression
- the expression to addpublic void addExpressions(IExpression[] expressions)
expressions
- the expressions to addpublic IWatchExpression newWatchExpression(String expressionText)
expressionText
- the text for the new expressionpublic 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 removeExpressions(IExpression[] expressions)
expressions
- the expressions to removepublic void addExpressionListener(IExpressionListener listener)
listener
- the listener to addpublic void removeExpressionListener(IExpressionListener listener)
listener
- the listener to removepublic void addExpressionListener(IExpressionsListener listener)
listener
- the listener to addpublic void removeExpressionListener(IExpressionsListener listener)
listener
- the listener to removepublic IWatchExpressionDelegate newWatchExpressionDelegate(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
public boolean hasWatchExpressionDelegate(String id)
id
- the unique identifier of a debug model
IWatchExpressionDelegate
|
Eclipse Platform Release 3.1 |
|||||||||||
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, 2005. All rights reserved.