I had installed Xcode 3.2.6 and Xcode 4.0.2 on my workstations, but, when I double-clicked a project, Xcode 4 would open… which is not what I want.
So, I found this article that actually shows how to take care of that.
Basically, you “Get Info” on a file and can select what application opens the file from that dialog box.