Enabling double clicking to open the right editor.
Simplification of editor open code.