• eclipse的xml文件提示templates的模板.md


    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>
    
  • 相关阅读:
    HBase 安装设置
    Python中通过函数对象创建全局变量
    Scala 中 构造函数,重载函数的执行顺序
    Hive 安装配置
    976. 三角形的最大周长
    922. 按奇偶排序数组 II
    350. 两个数组的交集 II
    349. 两个数组的交集
    242. 有效的字母异位词
    925. 长按键入
  • 原文地址:https://www.cnblogs.com/yangliguo/p/7399012.html
Copyright © 2020-2023  润新知