mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
clean up; zen-coding templates shouldn't be available in "Other" context
This commit is contained in:
+7
-8
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.template;
|
||||
|
||||
import com.intellij.codeInsight.template.impl.TemplateContext;
|
||||
import com.intellij.codeInsight.template.impl.TemplateImpl;
|
||||
import com.intellij.codeInsight.template.impl.TemplateManagerImpl;
|
||||
import com.intellij.codeInsight.template.impl.TemplateSettings;
|
||||
@@ -76,31 +75,31 @@ public class CustomTemplateCallback {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public TemplateImpl findApplicableTemplate(@NotNull String key, TemplateContextType... contextTypes) {
|
||||
List<TemplateImpl> templates = findApplicableTemplates(key, contextTypes);
|
||||
public TemplateImpl findApplicableTemplate(@NotNull String key) {
|
||||
List<TemplateImpl> templates = findApplicableTemplates(key);
|
||||
return templates.size() > 0 ? templates.get(0) : null;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<TemplateImpl> findApplicableTemplates(String key, TemplateContextType... contextTypes) {
|
||||
public List<TemplateImpl> findApplicableTemplates(String key) {
|
||||
List<TemplateImpl> templates = getMatchingTemplates(key);
|
||||
templates = filterApplicableCandidates(templates, contextTypes);
|
||||
templates = filterApplicableCandidates(templates);
|
||||
return templates;
|
||||
}
|
||||
|
||||
private List<TemplateImpl> filterApplicableCandidates(Collection<TemplateImpl> candidates, TemplateContextType... contextTypes) {
|
||||
private List<TemplateImpl> filterApplicableCandidates(Collection<TemplateImpl> candidates) {
|
||||
List<TemplateImpl> result = new ArrayList<TemplateImpl>();
|
||||
for (TemplateImpl candidate : candidates) {
|
||||
if (TemplateManagerImpl.isApplicable(myFile, myOffset > 0 ? myOffset - 1 : myOffset, candidate)) {
|
||||
result.add(candidate);
|
||||
}
|
||||
TemplateContext context = candidate.getTemplateContext();
|
||||
/*TemplateContext context = candidate.getTemplateContext();
|
||||
for (TemplateContextType contextType : contextTypes) {
|
||||
if (context.isEnabled(contextType)) {
|
||||
result.add(candidate);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="html:4t" toReformat="true" toShortenFQNames="true" value="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="$ENV_LANG$"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title></title> </head> <body> $END$ </body> </html>">
|
||||
@@ -15,7 +14,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="cc:ie6" toReformat="true" toShortenFQNames="true" value="<!--[if lte IE 6]> $END$ <![endif]-->">
|
||||
@@ -23,7 +21,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="html:4s" toReformat="true" toShortenFQNames="true" value="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="$ENV_LANG$"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title></title> </head> <body> $END$ </body> </html>">
|
||||
@@ -32,7 +29,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="cc:noie" toReformat="true" toShortenFQNames="true" value="<!--[if !IE]><!--> $END$ <!--<![endif]-->">
|
||||
@@ -40,7 +36,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="html:5" toReformat="true" toShortenFQNames="true" value="<!DOCTYPE HTML> <html lang="$ENV_LOCALE$"> <head> <meta charset="UTF-8"> <title></title> </head> <body> $END$ </body> </html>">
|
||||
@@ -49,7 +44,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="cc:ie" toReformat="true" toShortenFQNames="true" value="<!--[if IE]> $END$ <![endif]-->">
|
||||
@@ -57,7 +51,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="html:xt" toReformat="true" toShortenFQNames="true" value="<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$ENV_LANG$"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title></title> </head> <body> $END$ </body> </html>">
|
||||
@@ -66,7 +59,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="html:xxs" toReformat="true" toShortenFQNames="true" value="<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$ENV_LANG$"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <title></title> </head> <body> $END$ </body> </html>">
|
||||
@@ -75,7 +67,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<a href="http://...">...</a>" name="a:link" toReformat="true" toShortenFQNames="true" value="<a href="http://$VAR0$">$END$</a>">
|
||||
@@ -84,7 +75,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="datetime-local" name="..." id="...">" name="input:datetime-local" toReformat="true" toShortenFQNames="true" value="<input type="datetime-local" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -94,7 +84,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="reset" value="...">" name="input:reset" toReformat="true" toShortenFQNames="true" value="<input type="reset" value="$VAR0$">">
|
||||
@@ -103,7 +92,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<colgroup>...</colgroup>" name="colg" toReformat="true" toShortenFQNames="true" value="<colgroup>$END$</colgroup>">
|
||||
@@ -111,7 +99,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<style type="text/css">...</style>" name="style" toReformat="true" toShortenFQNames="true" value="<style type="text/css">$END$</style>">
|
||||
@@ -119,7 +106,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<address>...</address>" name="adr" toReformat="true" toShortenFQNames="true" value="<address>$END$</address>">
|
||||
@@ -127,7 +113,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<img src="..." alt="...">" name="img" toReformat="true" toShortenFQNames="true" value="<img src="$VAR0$" alt="$VAR1$">">
|
||||
@@ -137,7 +122,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<bdo dir="ltr">...</bdo>" name="bdo:l" toReformat="true" toShortenFQNames="true" value="<bdo dir="ltr">$END$</bdo>">
|
||||
@@ -145,7 +129,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<param name="..." value="...">" name="param" toReformat="true" toShortenFQNames="true" value="<param name="$VAR0$" value="$VAR1$">">
|
||||
@@ -155,7 +138,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="colgroup+" toReformat="true" toShortenFQNames="true" value="<colgroup> <col> </colgroup>">
|
||||
@@ -163,7 +145,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<form action="..." method="post">...</form>" name="form:post" toReformat="true" toShortenFQNames="true" value="<form action="$VAR0$" method="post">$END$</form>">
|
||||
@@ -172,7 +153,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<bdo dir="rtl">...</bdo>" name="bdo:r" toReformat="true" toShortenFQNames="true" value="<bdo dir="rtl">$END$</bdo>">
|
||||
@@ -180,7 +160,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<figure>...</figure>" name="fig" toReformat="true" toShortenFQNames="true" value="<figure>$END$</figure>">
|
||||
@@ -188,7 +167,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="radio" name="..." id="...">" name="input:radio" toReformat="true" toShortenFQNames="true" value="<input type="radio" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -198,7 +176,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<link rel="stylesheet" type="text/css" href="...print.css" media="print">" name="link:print" toReformat="true" toShortenFQNames="true" value="<link rel="stylesheet" type="text/css" href="$END$print.css" media="print">">
|
||||
@@ -206,7 +183,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<option>...</option>" name="opt" toReformat="true" toShortenFQNames="true" value="<option>$END$</option>">
|
||||
@@ -214,7 +190,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="image" src="..." alt="...">" name="input:i" toReformat="true" toShortenFQNames="true" value="<input type="image" src="$VAR0$" alt="$VAR1$">">
|
||||
@@ -224,7 +199,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="hidden" name="...">" name="input:h" toReformat="true" toShortenFQNames="true" value="<input type="hidden" name="$VAR0$">">
|
||||
@@ -233,7 +207,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="file" name="..." id="...">" name="input:f" toReformat="true" toShortenFQNames="true" value="<input type="file" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -243,7 +216,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="checkbox" name="..." id="...">" name="input:c" toReformat="true" toShortenFQNames="true" value="<input type="checkbox" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -253,7 +225,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="button" value="...">" name="input:b" toReformat="true" toShortenFQNames="true" value="<input type="button" value="$VAR0$">">
|
||||
@@ -262,7 +233,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<abbr title="...">...</abbr>" name="abbr" toReformat="true" toShortenFQNames="true" value="<abbr title="$VAR0$">$END$</abbr>">
|
||||
@@ -271,7 +241,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="text" name="..." id="...">" name="input:t" toReformat="true" toShortenFQNames="true" value="<input type="text" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -281,7 +250,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="password" name="..." id="...">" name="input:p" toReformat="true" toShortenFQNames="true" value="<input type="password" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -291,7 +259,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="submit" value="...">" name="input:s" toReformat="true" toShortenFQNames="true" value="<input type="submit" value="$VAR0$">">
|
||||
@@ -300,7 +267,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="radio" name="..." id="...">" name="input:r" toReformat="true" toShortenFQNames="true" value="<input type="radio" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -310,7 +276,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<iframe>...</iframe>" name="ifr" toReformat="true" toShortenFQNames="true" value="<iframe>$END$</iframe>">
|
||||
@@ -318,7 +283,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<embed>" name="emb" toReformat="true" toShortenFQNames="true" value="<embed>">
|
||||
@@ -326,7 +290,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="optg+" toReformat="true" toShortenFQNames="true" value="<optgroup> <option value="$VAR0$">$END$</option> </optgroup>">
|
||||
@@ -335,7 +298,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<command>" name="cmd" toReformat="true" toShortenFQNames="true" value="<command>">
|
||||
@@ -343,7 +305,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<link rel="alternate" type="application/atom+xml" title="Atom" href="atom.xml">" name="link:atom" toReformat="true" toShortenFQNames="true" value="<link rel="alternate" type="application/atom+xml" title="Atom" href="atom.xml">">
|
||||
@@ -351,7 +312,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="table+" toReformat="true" toShortenFQNames="true" value="<table> <tr> <td>$END$</td> </tr> </table>">
|
||||
@@ -359,7 +319,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<article>...</article>" name="art" toReformat="true" toShortenFQNames="true" value="<article>$END$</article>">
|
||||
@@ -367,7 +326,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="search" name="..." id="...">" name="input:search" toReformat="true" toShortenFQNames="true" value="<input type="search" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -377,7 +335,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<area shape="rect" coords="..." href="..." alt="...">" name="area:r" toReformat="true" toShortenFQNames="true" value="<area shape="rect" coords="$VAR0$" href="$VAR1$" alt="$VAR2$">">
|
||||
@@ -388,7 +345,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<area shape="poly" coords="..." href="..." alt="...">" name="area:p" toReformat="true" toShortenFQNames="true" value="<area shape="poly" coords="$VAR0$" href="$VAR1$" alt="$VAR2$">">
|
||||
@@ -399,7 +355,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="date" name="..." id="...">" name="input:date" toReformat="true" toShortenFQNames="true" value="<input type="date" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -409,7 +364,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<video src="...">...</video>" name="video" toReformat="true" toShortenFQNames="true" value="<video src="$VAR0$">$END$</video>">
|
||||
@@ -418,7 +372,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="button" value="...">" name="input:button" toReformat="true" toShortenFQNames="true" value="<input type="button" value="$VAR0$">">
|
||||
@@ -427,7 +380,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<area shape="default" href="..." alt="...">" name="area:d" toReformat="true" toShortenFQNames="true" value="<area shape="default" href="$VAR0$" alt="$VAR1$">">
|
||||
@@ -437,7 +389,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<area shape="circle" coords="..." href="..." alt="...">" name="area:c" toReformat="true" toShortenFQNames="true" value="<area shape="circle" coords="$VAR0$" href="$VAR1$" alt="$VAR2$">">
|
||||
@@ -448,7 +399,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<output>...</output>" name="out" toReformat="true" toShortenFQNames="true" value="<output>$END$</output>">
|
||||
@@ -456,7 +406,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<footer>...</footer>" name="ftr" toReformat="true" toShortenFQNames="true" value="<footer>$END$</footer>">
|
||||
@@ -464,7 +413,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<dialog>...</dialog>" name="dlg" toReformat="true" toShortenFQNames="true" value="<dialog>$END$</dialog>">
|
||||
@@ -472,7 +420,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<script type="text/javascript" src="...">...</script>" name="script:src" toReformat="true" toShortenFQNames="true" value="<script type="text/javascript" src="$VAR0$">$END$</script>">
|
||||
@@ -481,7 +428,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<form action="..." method="get">...</form>" name="form:get" toReformat="true" toShortenFQNames="true" value="<form action="$VAR0$" method="get">$END$</form>">
|
||||
@@ -490,7 +436,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">" name="meta:utf" toReformat="true" toShortenFQNames="true" value="<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">">
|
||||
@@ -498,7 +443,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<label for="...">...</label>" name="label" toReformat="true" toShortenFQNames="true" value="<label for="$VAR0$">$END$</label>">
|
||||
@@ -507,7 +451,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="time" name="..." id="...">" name="input:time" toReformat="true" toShortenFQNames="true" value="<input type="time" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -517,7 +460,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<link rel="shortcut icon" type="image/x-icon" href="...favicon.ico">" name="link:favicon" toReformat="true" toShortenFQNames="true" value="<link rel="shortcut icon" type="image/x-icon" href="$END$favicon.ico">">
|
||||
@@ -525,7 +467,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<menu type="toolbar">...</menu>" name="menu:toolbar" toReformat="true" toShortenFQNames="true" value="<menu type="toolbar">$END$</menu>">
|
||||
@@ -533,7 +474,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<progress>...</progress>" name="prog" toReformat="true" toShortenFQNames="true" value="<progress>$END$</progress>">
|
||||
@@ -541,7 +481,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="email" name="..." id="...">" name="input:email" toReformat="true" toShortenFQNames="true" value="<input type="email" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -551,7 +490,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<optgroup>...</optgroup>" name="optg" toReformat="true" toShortenFQNames="true" value="<optgroup>$END$</optgroup>">
|
||||
@@ -559,7 +497,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<strong>...</strong>" name="str" toReformat="true" toShortenFQNames="true" value="<strong>$END$</strong>">
|
||||
@@ -567,7 +504,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<legend>...</legend>" name="leg" toReformat="true" toShortenFQNames="true" value="<legend>$END$</legend>">
|
||||
@@ -575,7 +511,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<acronym title="...">...</acronym>" name="acronym" toReformat="true" toShortenFQNames="true" value="<acronym title="$VAR0$">$END$</acronym>">
|
||||
@@ -584,7 +519,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="ol+" toReformat="true" toShortenFQNames="true" value="<ol> <li>$END$</li> </ol>">
|
||||
@@ -592,7 +526,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="tr+" toReformat="true" toShortenFQNames="true" value="<tr> <td>$END$</td> </tr>">
|
||||
@@ -600,7 +533,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="optgroup+" toReformat="true" toShortenFQNames="true" value="<optgroup> <option value="$VAR0$">$END$</option> </optgroup>">
|
||||
@@ -609,7 +541,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<base href="...">" name="base" toReformat="true" toShortenFQNames="true" value="<base href="$VAR0$">">
|
||||
@@ -618,7 +549,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<blockquote>...</blockquote>" name="bq" toReformat="true" toShortenFQNames="true" value="<blockquote>$END$</blockquote>">
|
||||
@@ -626,7 +556,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<source>...</source>" name="src" toReformat="true" toShortenFQNames="true" value="<source>$END$</source>">
|
||||
@@ -634,7 +563,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<object>...</object>" name="obj" toReformat="true" toShortenFQNames="true" value="<object>$END$</object>">
|
||||
@@ -642,7 +570,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="dl+" toReformat="true" toShortenFQNames="true" value="<dl> <dt>$VAR0$</dt> <dd>$END$</dd> </dl>">
|
||||
@@ -651,7 +578,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<script type="text/javascript">...</script>" name="script" toReformat="true" toShortenFQNames="true" value="<script type="text/javascript">$END$</script>">
|
||||
@@ -659,7 +585,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<acronym>...</acronym>" name="acr" toReformat="true" toShortenFQNames="true" value="<acronym>$END$</acronym>">
|
||||
@@ -667,7 +592,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="password" name="..." id="...">" name="input:password" toReformat="true" toShortenFQNames="true" value="<input type="password" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -677,7 +601,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="file" name="..." id="...">" name="input:file" toReformat="true" toShortenFQNames="true" value="<input type="file" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -687,7 +610,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<textarea>...</textarea>" name="tarea" toReformat="true" toShortenFQNames="true" value="<textarea>$END$</textarea>">
|
||||
@@ -695,7 +617,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<select name="..." id="...">...</select>" name="select" toReformat="true" toShortenFQNames="true" value="<select name="$VAR0$" id="$VAR1$">$END$</select>">
|
||||
@@ -705,7 +626,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="number" name="..." id="...">" name="input:number" toReformat="true" toShortenFQNames="true" value="<input type="number" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -715,7 +635,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="range" name="..." id="...">" name="input:range" toReformat="true" toShortenFQNames="true" value="<input type="range" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -725,7 +644,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<area shape="..." coords="..." href="..." alt="...">" name="area" toReformat="true" toShortenFQNames="true" value="<area shape="$VAR0$" coords="$VAR1$" href="$VAR2$" alt="$VAR3$">">
|
||||
@@ -737,7 +655,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="image" src="..." alt="...">" name="input:image" toReformat="true" toShortenFQNames="true" value="<input type="image" src="$VAR0$" alt="$VAR1$">">
|
||||
@@ -747,7 +664,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="ul+" toReformat="true" toShortenFQNames="true" value="<ul> <li>$END$</li> </ul>">
|
||||
@@ -755,7 +671,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="month" name="..." id="...">" name="input:month" toReformat="true" toShortenFQNames="true" value="<input type="month" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -765,7 +680,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<fieldset>...</fieldset>" name="fset" toReformat="true" toShortenFQNames="true" value="<fieldset>$END$</fieldset>">
|
||||
@@ -773,7 +687,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<meta http-equiv="Content-Type" content="text/html;charset=Win-1251">" name="meta:win" toReformat="true" toShortenFQNames="true" value="<meta http-equiv="Content-Type" content="text/html;charset=Win-1251">">
|
||||
@@ -781,7 +694,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<menu type="toolbar">...</menu>" name="menu:t" toReformat="true" toShortenFQNames="true" value="<menu type="toolbar">$END$</menu>">
|
||||
@@ -789,7 +701,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<form action="...">...</form>" name="form" toReformat="true" toShortenFQNames="true" value="<form action="$VAR0$">$END$</form>">
|
||||
@@ -798,7 +709,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<menu type="context">...</menu>" name="menu:c" toReformat="true" toShortenFQNames="true" value="<menu type="context">$END$</menu>">
|
||||
@@ -806,7 +716,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<link rel="stylesheet" href="...">" name="link" toReformat="true" toShortenFQNames="true" value="<link rel="stylesheet" href="$VAR0$">">
|
||||
@@ -815,7 +724,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="...">" name="input" toReformat="true" toShortenFQNames="true" value="<input type="$VAR0$">">
|
||||
@@ -824,7 +732,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<link rel="alternate" type="application/rss+xml" title="RSS" href="...rss.xml">" name="link:rss" toReformat="true" toShortenFQNames="true" value="<link rel="alternate" type="application/rss+xml" title="RSS" href="$END$rss.xml">">
|
||||
@@ -832,7 +739,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="select+" toReformat="true" toShortenFQNames="true" value="<select name="$VAR0$" id="$VAR1$"> <option value="$VAR2$">$END$</option></select>">
|
||||
@@ -843,7 +749,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<header>...</header>" name="hdr" toReformat="true" toShortenFQNames="true" value="<header>$END$</header>">
|
||||
@@ -851,7 +756,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<caption>...</caption>" name="cap" toReformat="true" toShortenFQNames="true" value="<caption>$END$</caption>">
|
||||
@@ -859,7 +763,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<details>...</details>" name="det" toReformat="true" toShortenFQNames="true" value="<details>$END$</details>">
|
||||
@@ -867,7 +770,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<link rel="apple-touch-icon" href="...favicon.png">" name="link:touch" toReformat="true" toShortenFQNames="true" value="<link rel="apple-touch-icon" href="$END$favicon.png">">
|
||||
@@ -875,7 +777,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<iframe src="..." frameborder="0">...</iframe>" name="iframe" toReformat="true" toShortenFQNames="true" value="<iframe src="$VAR0$" frameborder="0">$END$</iframe>">
|
||||
@@ -884,7 +785,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<link rel="stylesheet" type="text/css" href="...style.css" media="all">" name="link:css" toReformat="true" toShortenFQNames="true" value="<link rel="stylesheet" type="text/css" href="$END$style.css" media="all">">
|
||||
@@ -892,7 +792,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="week" name="..." id="...">" name="input:week" toReformat="true" toShortenFQNames="true" value="<input type="week" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -902,7 +801,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<embed src="..." type="...">" name="embed" toReformat="true" toShortenFQNames="true" value="<embed src="$VAR0$" type="$VAR1$">">
|
||||
@@ -912,7 +810,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<datagrid>...</datagrid>" name="datag" toReformat="true" toShortenFQNames="true" value="<datagrid>$END$</datagrid>">
|
||||
@@ -920,7 +817,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="datetime" name="..." id="...">" name="input:datetime" toReformat="true" toShortenFQNames="true" value="<input type="datetime" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -930,7 +826,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<option value="...">...</option>" name="option" toReformat="true" toShortenFQNames="true" value="<option value="$VAR0$">$END$</option>">
|
||||
@@ -939,7 +834,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<html xmlns="http://www.w3.org/1999/xhtml">...</html>" name="html:xml" toReformat="true" toShortenFQNames="true" value="<html xmlns="http://www.w3.org/1999/xhtml">$END$</html>">
|
||||
@@ -947,7 +841,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<button>...</button>" name="btn" toReformat="true" toShortenFQNames="true" value="<button>$END$</button>">
|
||||
@@ -955,7 +848,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="url" name="..." id="...">" name="input:url" toReformat="true" toShortenFQNames="true" value="<input type="url" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -965,7 +857,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<menu type="context">...</menu>" name="menu:context" toReformat="true" toShortenFQNames="true" value="<menu type="context">$END$</menu>">
|
||||
@@ -973,7 +864,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="colg+" toReformat="true" toShortenFQNames="true" value="<colgroup> <col> </colgroup>">
|
||||
@@ -981,7 +871,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<map name="...">...</map>" name="map" toReformat="true" toShortenFQNames="true" value="<map name="$VAR0$">$END$</map>">
|
||||
@@ -990,7 +879,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="color" name="..." id="...">" name="input:color" toReformat="true" toShortenFQNames="true" value="<input type="color" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -1000,7 +888,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<meta http-equiv="X-UA-Compatible" content="IE=7">" name="meta:compat" toReformat="true" toShortenFQNames="true" value="<meta http-equiv="X-UA-Compatible" content="IE=7">">
|
||||
@@ -1008,7 +895,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="hidden" name="...">" name="input:hidden" toReformat="true" toShortenFQNames="true" value="<input type="hidden" name="$VAR0$">">
|
||||
@@ -1017,7 +903,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<object data="..." type="...">...</object>" name="object" toReformat="true" toShortenFQNames="true" value="<object data="$VAR0$" type="$VAR1$">$END$</object>">
|
||||
@@ -1027,7 +912,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<a href="mailto:...">...</a>" name="a:mail" toReformat="true" toShortenFQNames="true" value="<a href="mailto:$VAR0$">$END$</a>">
|
||||
@@ -1036,7 +920,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<a href="...">...</a>" name="a" toReformat="true" toShortenFQNames="true" value="<a href="$VAR0$">$END$</a>">
|
||||
@@ -1045,7 +928,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<datalist>...</datalist>" name="datal" toReformat="true" toShortenFQNames="true" value="<datalist>$END$</datalist>">
|
||||
@@ -1053,7 +935,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<keygen>" name="kg" toReformat="true" toShortenFQNames="true" value="<keygen>">
|
||||
@@ -1061,7 +942,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<textarea name="..." id="..." cols="30" rows="10">...</textarea>" name="textarea" toReformat="true" toShortenFQNames="true" value="<textarea name="$VAR0$" id="$VAR1$" cols="30" rows="10">$END$</textarea>">
|
||||
@@ -1071,7 +951,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="" name="map+" toReformat="true" toShortenFQNames="true" value="<map name="$VAR0$"> <area shape="$VAR1$" coords="$VAR2$" href="$VAR3$" alt="$VAR4$"></map>">
|
||||
@@ -1084,7 +963,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="submit" value="...">" name="input:submit" toReformat="true" toShortenFQNames="true" value="<input type="submit" value="$VAR0$">">
|
||||
@@ -1093,7 +971,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="text" name="..." id="...">" name="input:text" toReformat="true" toShortenFQNames="true" value="<input type="text" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -1103,7 +980,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<input type="checkbox" name="..." id="...">" name="input:checkbox" toReformat="true" toShortenFQNames="true" value="<input type="checkbox" name="$VAR0$" id="$VAR1$">">
|
||||
@@ -1113,7 +989,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<fieldset>...</fieldset>" name="fst" toReformat="true" toShortenFQNames="true" value="<fieldset>$END$</fieldset>">
|
||||
@@ -1121,7 +996,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<section>...</section>" name="sect" toReformat="true" toShortenFQNames="true" value="<section>$END$</section>">
|
||||
@@ -1129,7 +1003,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<audio src="...">...</audio>" name="audio" toReformat="true" toShortenFQNames="true" value="<audio src="$VAR0$">$END$</audio>">
|
||||
@@ -1138,7 +1011,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="<bdo dir="...">...</bdo>" name="bdo" toReformat="true" toShortenFQNames="true" value="<bdo dir="$VAR0$">$END$</bdo>">
|
||||
@@ -1147,7 +1019,6 @@
|
||||
<option name="HTML" value="true"/>
|
||||
<option name="XML" value="true"/>
|
||||
<option name="JSP" value="true"/>
|
||||
<option name="OTHER" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
</templateSet>
|
||||
|
||||
@@ -453,7 +453,7 @@ public class ZenCodingTemplate implements CustomLiveTemplate {
|
||||
if (surroundedText == null) {
|
||||
if (node instanceof TemplateNode) {
|
||||
if (key.equals(((TemplateNode)node).getTemplateToken().getKey()) &&
|
||||
callback.findApplicableTemplates(key, defaultGenerator.getContextTypes()).size() > 1) {
|
||||
callback.findApplicableTemplates(key).size() > 1) {
|
||||
callback.startTemplate();
|
||||
return;
|
||||
}
|
||||
|
||||
-7
@@ -16,7 +16,6 @@
|
||||
package com.intellij.codeInsight.template.zencoding.generators;
|
||||
|
||||
import com.intellij.codeInsight.template.CustomTemplateCallback;
|
||||
import com.intellij.codeInsight.template.TemplateContextType;
|
||||
import com.intellij.codeInsight.template.impl.TemplateImpl;
|
||||
import com.intellij.codeInsight.template.zencoding.ZenCodingTemplate;
|
||||
import com.intellij.codeInsight.template.zencoding.tokens.TemplateToken;
|
||||
@@ -38,8 +37,6 @@ public abstract class ZenCodingGenerator {
|
||||
private static final ExtensionPointName<ZenCodingGenerator> EP_NAME =
|
||||
new ExtensionPointName<ZenCodingGenerator>("com.intellij.xml.zenCodingGenerator");
|
||||
|
||||
private static final TemplateContextType[] EMPTY_CONTEXT_TYPE_ARRAY = new TemplateContextType[0];
|
||||
|
||||
public abstract TemplateImpl generateTemplate(@NotNull TemplateToken token, boolean hasChildren, @NotNull PsiElement context);
|
||||
|
||||
@Nullable
|
||||
@@ -56,10 +53,6 @@ public abstract class ZenCodingGenerator {
|
||||
|
||||
public abstract boolean isAppliedByDefault(@NotNull PsiElement context);
|
||||
|
||||
public TemplateContextType[] getContextTypes() {
|
||||
return EMPTY_CONTEXT_TYPE_ARRAY;
|
||||
}
|
||||
|
||||
public static List<ZenCodingGenerator> getInstances() {
|
||||
List<ZenCodingGenerator> generators = new ArrayList<ZenCodingGenerator>();
|
||||
Collections.addAll(generators, XmlZenCodingGeneratorImpl.INSTANCE);
|
||||
|
||||
Reference in New Issue
Block a user