* This is simple, since the watch functionality is already there.
*
* @see WatchExpressionAction#createExpression
*/
private void eval(final String expr) {
final IWatchExpression expression = createWatchExpression(expr);
final Shell shell = PydevDebugPlugin.getActiveWorkbenchWindow().getShell();
Display display = PydevDebugPlugin.getDefault().getWorkbench().getDisplay();
final Point point = display.getCursorLocation();
Display.getDefault().asyncExec(new Runnable() {
public void run() {
expression.evaluate();
waitForExpressionEvaluation(expression);
try {
IValue value = expression.getValue();
String result = null;
if (value != null) {
result = expr + "\n" + value.getValueString();
DisplayPopup popup = new DisplayPopup(shell, point, result);
popup.open();