Is there an eclipse equivalent to the Visual Studio "Command Window"?

The closest editor in Eclipse would be a Scrapbook page, where you can execute Java expressions without having to create a new Java program.
This is a neat way to quickly test an existing class or evaluate a code snippet.

But this isn't exactly equivalent to a Visual Studio Command Window, and more akin to an Immediate Window in Visual Studio.
Still it can be handy.

alt text
(source: eclipsezone.com)

alt text
(source: eclipsezone.com)


If you are looking for a quick, mouse-less way to type and execute commands, check out the Quick Access feature. Just type Ctrl+3 and start typing the name of a command. alt text http://img.skitch.com/20100812-dk21k8kfgjx3finmpx1qmnrwj1.png

You can execute commands, however, it is lacking the parameters. Eclipse is missing the scripting capabilities. There are some plugins and projects that try to complement that, but nothing standard.


Window > Show View > Display

In the Display window, you can type whatever Java code you want, select it and evaluate the result clicking on the "Evaluate" button.