Implement file open in hierarchy view.
Refactor the mouse commands code.