There is one very annoying issue in Eclipse: stealing of focus by Console window.
Console window is displayed when you run application.
When you set focus to some other window like Search results and application prints something on output then Eclipse will automatically switch to Console window. Your search results are gone.
There is simple way how to get rid of such a behavior.
Go to Window -> Preferences -> Run/Debug -> Console. Uncheck options:
- Show when program writes to standard out
- Show when program writes to standard error