You can set the editor that will open a file per default in the
Preferences->Editors->FileAssociations menu.
Select one of the associated editors and press the default button.
EDIT: You can refine the file associations. To change the association for the web.xml
file, got to the same file associations menu and click add in the upper right corner. Type web.xml
and press OK, then edit the associated editors.
EDIT2:
Unfortunately, there is no setting for associating editors with content types directly. Content type menu is mainly for setting default encodings. The editor associations are relayed by the file associations.
You can associate file extensions or full file names with editors. Wildcards are restricted, so you cannot associate an editor with all .x*ml
files.
If you are OK with making several changes, here are the exemplary steps to open all .xhtml
files with the built-in web page editor (tried and working in my 3.7): in the file associations menu, click the .xhtml
item, then select the editor of your choice in the list below and click on the default button on the right-hand side. From now on a double-click on an .xhtml
file will open it in the built-in editor instead of the JBoss Tools.