public abstract class GlobalSimpleInspectionTool extends GlobalInspectionTool
myNameProvider
Constructor and Description |
---|
GlobalSimpleInspectionTool() |
Modifier and Type | Method and Description |
---|---|
abstract void |
checkFile(PsiFile file,
InspectionManager manager,
ProblemsHolder problemsHolder,
GlobalInspectionContext globalContext,
ProblemDescriptionsProcessor problemDescriptionsProcessor) |
void |
inspectionFinished(InspectionManager manager,
GlobalInspectionContext globalContext,
ProblemDescriptionsProcessor problemDescriptionsProcessor) |
void |
inspectionStarted(InspectionManager manager,
GlobalInspectionContext globalContext,
ProblemDescriptionsProcessor problemDescriptionsProcessor) |
boolean |
isGraphNeeded()
Checks if this inspection requires building of the reference graph.
|
boolean |
isReadActionNeeded()
True by default to ensure third party plugins are not broken
|
void |
runInspection(AnalysisScope scope,
InspectionManager manager,
GlobalInspectionContext globalContext,
ProblemDescriptionsProcessor problemDescriptionsProcessor)
Runs the global inspection.
|
checkElement, checkElement, compose, getAdditionalJobs, getAdditionalJobs, getAnnotator, getHint, getQuickFix, getSharedLocalInspectionTool, getSuppressId, isEnabledByDefault, queryExternalUsagesRequests, worksInBatchModeOnly
cleanup, createOptionsPanel, getAlternativeID, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupDisplayName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions, writeSettings
public void inspectionStarted(InspectionManager manager, GlobalInspectionContext globalContext, ProblemDescriptionsProcessor problemDescriptionsProcessor)
public void inspectionFinished(InspectionManager manager, GlobalInspectionContext globalContext, ProblemDescriptionsProcessor problemDescriptionsProcessor)
public abstract void checkFile(PsiFile file, InspectionManager manager, ProblemsHolder problemsHolder, GlobalInspectionContext globalContext, ProblemDescriptionsProcessor problemDescriptionsProcessor)
public final void runInspection(AnalysisScope scope, InspectionManager manager, GlobalInspectionContext globalContext, ProblemDescriptionsProcessor problemDescriptionsProcessor)
GlobalInspectionTool
GlobalInspectionTool.checkElement(RefEntity, AnalysisScope, InspectionManager, GlobalInspectionContext)
.runInspection
in class GlobalInspectionTool
scope
- the scope on which the inspection was run.manager
- the inspection manager instance for the project on which the inspection was run.globalContext
- the context for the current global inspection run.problemDescriptionsProcessor
- the collector for problems reported by the inspectionpublic boolean isReadActionNeeded()
GlobalInspectionTool
isReadActionNeeded
in class GlobalInspectionTool
GlobalInspectionTool.runInspection(AnalysisScope, InspectionManager, GlobalInspectionContext, ProblemDescriptionsProcessor)
) in ReadAction,
false if ReadAction is taken by inspection itselfpublic final boolean isGraphNeeded()
GlobalInspectionTool
isGraphNeeded
in class GlobalInspectionTool