MyEclipse8.5 添加XML模版

1 篇文章 0 订阅
1 篇文章 0 订阅
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"
[img]http://dl.iteye.com/upload/attachment/0069/9164/c3b58762-33fc-3163-b758-632d8b42e172.jpg[/img]


本人第一次写文章不好大家见谅!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值