¿Existe un complemento para Eclipse que evalúe inmediatamente una expresión resaltada?

A colleague of mine uses Netbeans, and I noticed a tremendously useful feature it has in debug mode: it immediately shows what a highlighted expression evaluates to in a tooltip. I'm not sure whether this is a standard feature in Netbeans, but I would definitely find it useful in Eclipse as well.

Does anyone know a plugin or a similar way of using this in Eclipse?

EDIT: Eclipse provides tooltips for single variable evaluation and expressions evaluation in the expressions view. This is not what I need. In Netbeans, you can highlight an expresión (possibly containing more than one variable) and it gets evaluated in a tooltip.

preguntado el 08 de noviembre de 11 a las 14:11

3 Respuestas

In Eclipse debug mode you can add needed expression to Expression view and check its value or you can hover mouse over variables and check theirs values

respondido 08 nov., 11:18

wow, I didn't know about dragging, still, not was I was looking for. - Zoltán

Did you read question? Did you tried this in Netbeans? In Netbeans you select the expression in editor and see the evaluated value in popup! - Pavlo Morozov

In Eclipse, when you're running your program in the debugger, you should be able to add a Watcher for a variable, or just simply evaluate an expression (I believe) in the Watcher tab. Sorry, I don't actually use Eclipse full-time, this is just from memory as I have used it in the past...

respondido 08 nov., 11:18

Three years later (don't know if it was before) you can Inspect the selected expression.
Select it, right click and choose Inspect, or press Ctrl+Shift+I (personally I changed that shortcut to one more reachable F12).

Respondido 21 Feb 14, 19:02

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.