Change to openFileInTextEditor to fix ticket issue #650.