After upgrading to OS X Yosemite I found that eclipse was not working because JAVA was not properly installed. I installed it and now I am able to open eclipse.
Whe
What worked for me was ticking on/off the USB debugging mode in the device Developers options, but the solution in the selected answer is better...