Skip to content

Tag: eclipse

Eclipse autogenerated toString() method

As par as I know concatinate String using + sign is not a good practice when you have large number of String. But when I check on eclipse generated toString() method (Write click on source file -> Source -> Generate toString() ) it has the same. Is there any place to configure like my expected toString(…

A shortcut to select a line in Eclipse?

Is there a keyboard shortcut to select all the line your cursor is currently on? In Eclipse? Or even in general on Windows/Linux? Answer Solution for Eclipse: Hold Alt and press ↑ and ↓. Alt + ↑ and ↓ will move an entire line up or down, so just move it back and you end up with the entire line

AntBuilder can’t find package org.junit

I added some unit tests to a test directory (parallel to my src directory) in my project in Eclipse using the “JUnit test case” new file dialogue. I have two builders, the default Java Builder and an AntBuilder I added. The Java Builder continues to work, but the AntBuilder fails in Eclipse. When …