Postfix templates: do not allow to modify foreach template

This commit is contained in:
Alexander Zolotov
2018-04-23 21:03:27 +03:00
parent 2046b48ea1
commit aabea34052
@@ -131,6 +131,7 @@ public class JavaPostfixTemplateProvider implements PostfixTemplateProvider {
templateToEdit instanceof JavaEditablePostfixTemplate &&
// cannot be editable until there is no UI for editing template variables
!(templateToEdit instanceof ForIndexedPostfixTemplate) &&
!(templateToEdit instanceof ForeachPostfixTemplate) &&
!(templateToEdit instanceof ArgumentPostfixTemplate) &&
!(templateToEdit instanceof OptionalPostfixTemplate)) {
JavaPostfixTemplateEditor editor = new JavaPostfixTemplateEditor(this);