public interface IExpressionManager
Clients interested in expression change notification may
register with the expression manager - see
IExpressionListener
and IExpressionsListener
.
IExpression
,
IExpressionListener
,
IExpressionsListener
Modifier and Type | Method and Description |
---|---|
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.
|
void addExpression(IExpression expression)
expression
- the expression to addvoid addExpressions(IExpression[] expressions)
expressions
- the expressions to addIWatchExpression newWatchExpression(String expressionText)
expressionText
- the text for the new expressionIExpression[] getExpressions()
boolean hasExpressions()
IExpression[] getExpressions(String modelIdentifier)
modelIdentifier
- identifier of a debug model plug-invoid 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(String id)
null
if no delegate is available.id
- the unique identifier of a debug model for which a
watch expression delegate has been contributednull
if noneIWatchExpressionDelegate
boolean hasWatchExpressionDelegate(String id)
id
- the unique identifier of a debug modelIWatchExpressionDelegate
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.