Whenever I try to commit a file EGit says “no files to commit”, though the file is staged for commit according to its icon in Project Explorer (see the image)

This happens to any file in my project. What am I doing wrong? I’m using EGit 0.11.1.
EDIT:
Updated to 1.2.0 and it worked, thank you all!
As mentioned by the OP asd, EGit0.11.1 is not the latest version:
The Egit 1.2-SNAPSHOT (available through the nightly update site) solves the problem.
For reference, my original answer was:
It is possible, as shown in bug 341679 to checkout a remote branch (or a tag), without creating a local branch.
If you are in this situation, then you are working in a detached HEAD, which would explain the “no files to commit” message.
See “Git Lesson: Be mindful of a detached head” for more, and check if your history doesn’t display a HEAD pointer: