Struts.xml文件以xml格式打开。window-General-Editors-File Associations 找到*.xml,然后下面选中MyEclipse XML Editor - default