I wonder if there is a plugin for Eclipse that can execute some java expression?
For example i want to find proper pattern of SimpleDateFormat and i could create new class within which i then initialize several formatters and after compiling and execution i’ll see a result, but instead that i want to be able to write those formatters in this plugin view and see their result after execution without new class.
Thanks
I use a scrapbook page.
To create one, go to
File -> New -> Other -> Java -> Java Run/Debug -> Scrapbook Page. Type the statements e.g.Execute it, by highlighting the text (
Ctrl+A) and thenCtrl+U.The one thing I don’t like, is that it doesn’t allow import statements. You have to either type the fully qualified class name as above, or explicitly go into the
Set importsmenu and add classes you want to import.