mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Addded "iter" postfix template working like "for" one to be consistent with live templates
This commit is contained in:
+2
-2
@@ -28,8 +28,8 @@ import static com.intellij.codeInsight.template.postfix.util.JavaPostfixTemplate
|
||||
import static com.intellij.codeInsight.template.postfix.util.JavaPostfixTemplatesUtils.selectorTopmost;
|
||||
|
||||
public class ForeachPostfixTemplate extends StringBasedPostfixTemplate {
|
||||
public ForeachPostfixTemplate() {
|
||||
super("for", "for (T item : expr)", selectorTopmost(IS_ITERABLE_OR_ARRAY));
|
||||
public ForeachPostfixTemplate(String name) {
|
||||
super(name, "for (T item : expr)", selectorTopmost(IS_ITERABLE_OR_ARRAY));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-1
@@ -42,7 +42,8 @@ public class JavaPostfixTemplateProvider implements PostfixTemplateProvider {
|
||||
new ElseStatementPostfixTemplate(),
|
||||
new ForAscendingPostfixTemplate(),
|
||||
new ForDescendingPostfixTemplate(),
|
||||
new ForeachPostfixTemplate(),
|
||||
new ForeachPostfixTemplate("iter"),
|
||||
new ForeachPostfixTemplate("for"),
|
||||
new FormatPostfixTemplate(),
|
||||
new IfStatementPostfixTemplate(),
|
||||
new InstanceofExpressionPostfixTemplate(),
|
||||
|
||||
Reference in New Issue
Block a user