eclipse Proton

News and Noteworthy

The "new" template:

Your browser does not support the video tag.

Block Selection

Use the Edit -> Block Selection (Alt+Shift+A) while working with >= Java9.

Your browser does not support the video tag.

Your browser does not support the video tag.

CSV in Parameterised Tests

In JUnit5 parameterised tests also accept CSV literals (and files) as a source of parameters. Quite handy to feed your tests!

Your browser does not support the video tag.

Show Implementation In-place

Press Shift while hovering a method and it will show implementation in-place.

Your browser does not support the video tag.

Select Enclosing Structure

The 'enclosing' selection (Alt+Shift+Up/Dn) shortcut selects the enclosing structure, e.g. var->if->method->class

Your browser does not support the video tag.

The 'ifnull' Template

Use the 'ifnull' template to quickly create an if null check.

Your browser does not support the video tag.

Streams as Test Parameters

You can use methods returning Java streams as a source of parameters in JUnit5 tests. Use @MethodSource as shown below.

Your browser does not support the video tag.

Inspect Variable Declaration

If you want to see where and how a variable was declared press Shift while hovering and you'll see it in-place.

Your browser does not support the video tag.