You can determine which extensions are mapped to content types; this should help Eclipse do what you want.
To do this, go to: Window> Settings> General> Content Types
Then find content like "XML" on the right of the screen.
When you click on it, a list of extensions appears at the bottom of the dialog box.
Click the "Add ..." button and specify the extension in the drop-down list: * .vml
Click "OK" to close the settings window ...
... And .vml files should now be treated as XML; -)
Pascal martin
source share