Package fr.adrienbrault.idea.symfony2plugin.translation

Examples of fr.adrienbrault.idea.symfony2plugin.translation.TranslationKeyIntentionAction


        if(!TranslationUtil.hasTranslationKey(psiElement.getProject(), text, domainName)) {
            Annotation annotationHolder = holder.createWarningAnnotation(psiElement, "Missing Translation");
            List<PsiFile> psiElements = TranslationUtil.getDomainPsiFiles(psiElement.getProject(), domainName);
            for(PsiElement psiFile: psiElements) {
                if(psiFile instanceof YAMLFile) {
                    annotationHolder.registerFix(new TranslationKeyIntentionAction((YAMLFile) psiFile, text));
                }
            }
        }

    }
View Full Code Here

TOP

Related Classes of fr.adrienbrault.idea.symfony2plugin.translation.TranslationKeyIntentionAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.