eclipse的xml文件提示templates的模板

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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值