Maybe it would be enough to do nothing, when selected resource is not a file. The CVS plugin switches to synchronized view in similar occasions but EGit offers revision details anyway in history view.