Package com.intellij.codeInspection

Examples of com.intellij.codeInspection.InspectionManager


    @Override
    protected void invoke(Project project, Editor editor, GoFile file) {
        PsiElement element = file.findElementAt(editor.getSelectionModel().getSelectionStart());
        GoLiteralIdentifier identifier = findParentOfType(element, GoLiteralIdentifier.class);
        assertNotNull(identifier);
        InspectionManager im = InspectionManager.getInstance(project);
        LocalQuickFix fix = null;
        ProblemDescriptor pd = im.createProblemDescriptor(identifier, "", fix, ProblemHighlightType.ERROR, true);
        new ConvertToAssignmentFix().applyFix(project, pd);
    }
View Full Code Here


            element = element.getParent();
        }
        assertTrue(element instanceof GoLiteralIdentifier);

//        System.out.println(DebugUtil.psiToString(file, false, true));
        InspectionManager im = InspectionManager.getInstance(project);
        LocalQuickFix fix = null;
        ProblemDescriptor pd = im.createProblemDescriptor(element, "", fix,
                                                          ProblemHighlightType.ERROR,
                                                          true);
        new RemoveVariableFix().applyFix(project, pd);
    }
View Full Code Here

            element = element.getParent();
        }

        assertNotNull(element);
        //System.out.println(DebugUtil.psiToString(file, false, true));
        InspectionManager im = InspectionManager.getInstance(project);
        LocalQuickFix fix = null;
        ProblemDescriptor pd = im.createProblemDescriptor(element, "", fix, ProblemHighlightType.ERROR, true);
        new RemoveImportFix(element).applyFix(project, pd);
    }
View Full Code Here

    @SuppressWarnings("SynchronizationOnLocalVariableOrMethodParameter")
    private Map<PsiFile, List<ProblemDescriptor>> performCheckStyleScan(final Module module,
                                                                        final List<ScannableFile> tempFiles,
                                                                        final Map<String, PsiFile> filesToElements,
                                                                        final ConfigurationLocation override) {
        final InspectionManager manager = InspectionManager.getInstance(module.getProject());

        final ConfigurationLocation location = getConfigurationLocation(module, override);
        if (location == null) {
            configurationLocationStatus = ConfigurationLocationStatus.NOT_PRESENT;
            return null;
View Full Code Here

TOP

Related Classes of com.intellij.codeInspection.InspectionManager

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.