You can launch an editor for a given file in several ways.
All of the above alternatives open the file in the default editor for that type of file. To open it in a different editor, select Open With from the file's pop-up menu.
Associating editors with file types
Editing files outside the Workbench
Linking the Project Explorer view to the active editor