While compare works, it isn't the best way. Eclipse has Team > Synchronize with Repository.
This shows you a view of any changes you need to pull, any conflicts and any commits. You first pull any non-conflicting changes. Then you merge any conflicting ones. If needed,
test again and re-sync. If not, you commit from that screen.