MyEclipse8.5 添加XML模版

1、打开MyEclipse8.5的plugins文件夹
D:\Program Files\Genuitec\Common\plugins

2、找到com.genuitec.eclipse.wizards_8.5.0.me201003052220.jar文件并解压出来

3、打开templates.xml文件,找到<!-- XML templates -->在其最后添加
<template
	context="com.genuitec.eclipse.wizards.xml"
	script="templates/xml/XmlStruts21.vtl"
	name="XML template for a struts21.xml file"/>


4、进入=>templates=>xml文件夹下添加
"XmlStruts21.vtl"文件在文件里添加如下内容:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
    "http://struts.apache.org/dtds/struts-2.1.dtd">

<struts>

</struts>


5、用解压缩软件打开com.genuitec.eclipse.wizards_8.5.0.me201003052220.jar文件,把修改后的templates.xml放入到com.genuitec.eclipse.wizards_8.5.0.me201003052220.jar文件里,再把新建的"XmlStruts21.vtl"文件放入到=>templates=>xml文件夹下

6、把修改好的jar包替换原有的com.genuitec.eclipse.wizards_8.5.0.me201003052220.jar重新启动MyEclipse8.5新建xml时在template to use 里找到"XML template for a struts21.xml file"



本人第一次写文章不好大家见谅!

猜你喜欢

转载自lmh-java.iteye.com/blog/1567558