Right mouse click on the file name, from the drop down menu select OPEN WITH, then select Mastercam X Editor.
Alternatively, from the drop down menu you can choose DEFAULT PROGRAM so that when you double click a file name of the same type it automatically opens in Mastercam X Editor.