Patch Set 2:

To be clear, the patch is actually a piece of code taken from EGit's StagingView. I'm aware it's probably not a top notch fix, but at least it's working. I would like to hear if the approach is right. With a little help I'm eager to provide a better patch.