首页 技术 正文
技术 2022年11月20日
0 收藏 419 点赞 3,535 浏览 6727 个字

eclipse的xml文件提示templates的模板

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<templates>
<template autoinsert="true" context="xml_tag" enabled="true" id="org.springframework.ide.eclipse.beans.ui.editor.template.bean" name="Bean">&lt;bean id="${id}" class="${class}"&gt;
${cursor}
&lt;/bean&gt;</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="Inserts a constructor argument tag with one argument" enabled="true" id="org.springframework.ide.eclipse.beans.ui.editor.template.bean.constructor" name="Constructor Argument">&lt;constructor-arg&gt;
&lt;list&gt;
&lt;value&gt;${cursor}&lt;/value&gt;
&lt;/list&gt;
&lt;/constructor-arg&gt;</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="Inserts a map" enabled="true" id="org.springframework.ide.eclipse.beans.ui.editor.template.bean.property.map" name="Map">&lt;map&gt;
&lt;entry key="${key}"&gt;${cursor}&lt;/entry&gt;
&lt;/map&gt;</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="Inserts a property tag" enabled="true" id="org.springframework.ide.eclipse.beans.ui.editor.template.bean.property" name="Property">&lt;property name="${name}"&gt;${cursor}&lt;/property&gt;</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="Inserts a property tag with a ref attribute" enabled="true" id="org.springframework.ide.eclipse.beans.ui.editor.template.bean.property_with_ref_inline" name="Property with ref attribute">&lt;property name="${name}" ref="${cursor}" /&gt;</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="Inserts a property tag with nested value tag" enabled="true" id="org.springframework.ide.eclipse.beans.ui.editor.template.bean.property_with_value" name="Property with value">&lt;property name="${name}"&gt;
&lt;value&gt;${cursor}&lt;/value&gt;
&lt;/property&gt;</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="Inserts a property tag with a value attribute" enabled="true" id="org.springframework.ide.eclipse.beans.ui.editor.template.bean.property_with_value_inline" name="Property with value attribute">&lt;property name="${name}" value="${cursor}" /&gt;</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="Inserts a bean reference" enabled="true" id="org.springframework.ide.eclipse.beans.ui.editor.template.bean.property.ref.bean" name="Ref bean">&lt;ref bean="${id}"/&gt;${cursor}</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="Inserts a local bean reference" enabled="true" id="org.springframework.ide.eclipse.beans.ui.editor.template.bean.property.ref.local" name="Ref local">&lt;ref local="${id}"/&gt;${cursor}</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="Inserts a Web Flow Executor tag" enabled="true" id="org.springframework.ide.eclipse.webflow.ui.editor.template.executor" name="Web Flow Executor">&lt;!-- Launches new flow executions and resumes existing executions. --&gt;
${cursor}&lt;flow:executor id="${flowExecutor}" registry-ref="${flowRegistry}" repository-type="${singlekey}" /&gt;
</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="Inserts a Web Flow Registry tag" enabled="true" id="org.springframework.ide.eclipse.webflow.ui.editor.template.registry" name="Web Flow Registry">&lt;!-- Creates the registry of flow definitions for this application --&gt;
${cursor}&lt;flow:registry id="${flowRegistry}"&gt;
&lt;flow:location path="/WEB-INF/fileupload.xml" /&gt;
&lt;/flow:registry&gt;
</template>
</templates>

这里是eclipse自带的xml模板

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<templates>
<template autoinsert="true" context="xml_tag" deleted="false" description="xml comment" enabled="true" id="org.eclipse.wst.xml.ui.internal.templates.comment" name="comment">&lt;!-- ${cursor} --&gt;</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="ContextLoaderListener" enabled="true" id="com.springsource.sts.quickfix.contextloaderlistener" name="contextloaderlistener">&lt;!-- needed for ContextLoaderListener --&gt;
&lt;context-param&gt;
&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
&lt;param-value&gt;${location}${cursor}&lt;/param-value&gt;
&lt;/context-param&gt;&lt;!-- Bootstraps the root web application context before servlet initialization --&gt;
&lt;listener&gt;
&lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
&lt;/listener&gt;</template>
<template autoinsert="true" context="xml_attribute" deleted="false" description="Default Namespace Attribute" enabled="true" id="org.eclipse.wst.xml.ui.internal.templates.defaultnsp" name="default namespace">xmlns="default namespace"</template><template autoinsert="true" context="xml_tag" deleted="false" description="DispatcherServlet declaration" enabled="true" id="com.springsource.sts.quickfix.dispatcherservlet" name="dispatcherservlet">&lt;!-- The front controller of this Spring Web application, responsible for handling all application requests --&gt;
&lt;servlet&gt;
&lt;servlet-name&gt;springDispatcherServlet&lt;/servlet-name&gt;
&lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
&lt;init-param&gt;
&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
&lt;param-value&gt;${location}${cursor}&lt;/param-value&gt;
&lt;/init-param&gt;
&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;&lt;!-- Map all requests to the DispatcherServlet for handling --&gt;
&lt;servlet-mapping&gt;
&lt;servlet-name&gt;springDispatcherServlet&lt;/servlet-name&gt;
&lt;url-pattern&gt;${url}&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;</template>
<template autoinsert="true" context="xml_attribute" deleted="false" description="No Namespace Schema Location" enabled="true" id="org.eclipse.wst.xml.ui.internal.templates.noschemaLoc" name="noschemaLoc">xsi:noNamespaceSchemaLocation="{location}"</template>
<template autoinsert="true" context="xml_attribute" deleted="false" description="XML Schema location attribute" enabled="true" id="org.eclipse.wst.xml.ui.internal.templates.schemaLoc" name="schemaLoc">xsi:schemaLocation="{namespace} {location}"</template>
<template autoinsert="true" context="xml_new" deleted="false" description="xml declaration" enabled="true" id="org.eclipse.wst.xml.ui.internal.templates.xmldeclaration" name="xml declaration">&lt;?xml version="1.0" encoding="${encoding}"?&gt;</template>
<template autoinsert="true" context="xml_attribute" deleted="false" description="XML Schema name space" enabled="true" id="org.eclipse.wst.xml.ui.internal.templates.xsinsp" name="xsinsp">xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</template>
<template autoinsert="true" context="xml_tag" deleted="false" description="XSL processing instruction" enabled="true" id="org.eclipse.wst.xml.ui.internal.templates.xslpi" name="XSL processing instruction">&lt;?xml-stylesheet type="text/xsl" href="${cursor}"?&gt;</template></templates>
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,994
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,507
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,350
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,135
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,768
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,845