When you switch among opened files in eclipse, project explorer moves to the currently active file (in left pane). This can be annoying several times. To disable this just make sure icon with double arrows in Project Explorer (top right of Project explorer – see image below) is not pressed (this is called link with editor feature in eclipse):