Package org.qi4j.ide.plugin.idea.common.inspections

Examples of org.qi4j.ide.plugin.idea.common.inspections.AbstractFix


        if( modifierList != null )
        {
            if( modifierList.hasModifierProperty( com.intellij.psi.PsiModifier.STATIC ) )
            {
                String message = getInjectionAnnotationValidDeclarationMessage();
                AbstractFix removeAnnotationFix = createRemoveAnnotationFix( annotationToCheck );
                ProblemDescriptor problemDescriptor = manager.createProblemDescriptor(
                    annotationToCheck, message, removeAnnotationFix, com.intellij.codeInspection.ProblemHighlightType.GENERIC_ERROR_OR_WARNING
                );

                return new ProblemDescriptor[]{ problemDescriptor };
View Full Code Here


            {
                PsiAnnotation annotationToCheck = getAnnotationToCheck( parameter );
                if( annotationToCheck != null )
                {
                    String message = getInjectionAnnotationValidDeclarationMessage();
                    AbstractFix removeAnnotationFix = createRemoveAnnotationFix( annotationToCheck );
                    ProblemDescriptor problemDescriptor = manager.createProblemDescriptor(
                        annotationToCheck, message, removeAnnotationFix, GENERIC_ERROR_OR_WARNING
                    );
                    problems.add( problemDescriptor );
                }
View Full Code Here

        case invalidInjectionType:
            String message = message(
                "injections.structure.annotation.declared.correctly.error.invalid.injection.type",
                psiVariable.getType().getCanonicalText()
            );
            AbstractFix removeStructureAnnotationFix = createRemoveAnnotationFix( structureAnnotation );
            ProblemDescriptor problemDescriptor = manager.createProblemDescriptor(
                structureAnnotation, message, removeStructureAnnotationFix, GENERIC_ERROR_OR_WARNING
            );
            return new ProblemDescriptor[]{ problemDescriptor };
        }
View Full Code Here

TOP

Related Classes of org.qi4j.ide.plugin.idea.common.inspections.AbstractFix

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.