If you search for a String in Netbeans Java editor, it automatically highlights all occurrences of that string.
But, how can I achieve this feature in Eclipse?
Have you tried the Glance plugin for Eclipse? fully meet your requirements and even with more features.
demo and Github of this project: http://ystrot.github.io/glance/
UPDATE: available in Eclipse marketplace
http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=1012