public class GlobalInspectionContextBase extends UserDataHolderBase implements GlobalInspectionContext
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOCAL_TOOL_ATTRIBUTE |
protected java.util.Map<Key<?>,GlobalInspectionContextExtension<?>> |
myExtensions |
protected ProgressIndicator |
myProgressIndicator |
static java.lang.String |
PROBLEMS_TAG_NAME |
| Constructor and Description |
|---|
GlobalInspectionContextBase(Project project) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertUnderDaemonProgress() |
protected void |
canceled() |
void |
cleanup() |
static void |
cleanupElements(Project project,
java.lang.Runnable runnable,
java.util.List<? extends SmartPsiElementPointer<PsiElement>> elements) |
static void |
cleanupElements(Project project,
java.lang.Runnable runnable,
java.util.function.Predicate<? super ProblemDescriptor> shouldApplyFix,
PsiElement... scope) |
static void |
cleanupElements(Project project,
java.lang.Runnable runnable,
PsiElement... scope) |
void |
close(boolean noSuspiciousCodeFound) |
void |
codeCleanup(AnalysisScope scope,
InspectionProfile profile,
java.lang.String commandName,
java.lang.Runnable postRunnable,
boolean modal) |
void |
codeCleanup(AnalysisScope scope,
InspectionProfile profile,
java.lang.String commandName,
java.lang.Runnable postRunnable,
boolean modal,
java.util.function.Predicate<? super ProblemDescriptor> shouldApplyFix) |
protected PerformInBackgroundOption |
createOption() |
void |
doInspections(AnalysisScope scope) |
InspectionProfileImpl |
getCurrentProfile() |
AnalysisScope |
getCurrentScope() |
<T> T |
getExtension(Key<T> key) |
Project |
getProject() |
RefManager |
getRefManager()
Returns the reference graph for the global inspection run.
|
StdJobDescriptors |
getStdJobDescriptors() |
java.util.Map<java.lang.String,Tools> |
getTools() |
java.util.List<Tools> |
getUsedTools() |
void |
incrementJobDoneAmount(JobDescriptor job,
java.lang.String message) |
void |
initializeTools(java.util.List<Tools> outGlobalTools,
java.util.List<Tools> outLocalTools,
java.util.List<? super Tools> outGlobalSimpleTools) |
boolean |
isSuppressed(PsiElement element,
java.lang.String id)
Checks if the inspection with the specified ID is suppressed for the
specified PSI element.
|
boolean |
isToCheckFile(PsiFile file,
InspectionProfileEntry tool) |
boolean |
isToCheckMember(RefElement owner,
InspectionProfileEntry tool) |
protected void |
launchInspections(AnalysisScope scope) |
static void |
modalCodeCleanup(Project project,
AnalysisScope scope,
java.lang.Runnable runnable) |
protected void |
notifyInspectionsFinished(AnalysisScope scope) |
void |
performInspectionsWithProgress(AnalysisScope scope,
boolean runGlobalToolsOnly,
boolean isOfflineInspections) |
protected void |
runTools(AnalysisScope scope,
boolean runGlobalToolsOnly,
boolean isOfflineInspections) |
void |
setCurrentScope(AnalysisScope currentScope) |
void |
setExternalProfile(InspectionProfileImpl profile) |
void |
setRerunAction(java.lang.Runnable action) |
boolean |
shouldCheck(RefEntity entity,
GlobalInspectionTool tool)
Checks if the inspection is suppressed for the specified reference graph node.
|
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUserData, putUserDataprotected ProgressIndicator myProgressIndicator
protected final java.util.Map<Key<?>,GlobalInspectionContextExtension<?>> myExtensions
public static final java.lang.String PROBLEMS_TAG_NAME
public static final java.lang.String LOCAL_TOOL_ATTRIBUTE
public GlobalInspectionContextBase(Project project)
public AnalysisScope getCurrentScope()
public Project getProject()
getProject in interface GlobalInspectionContextpublic <T> T getExtension(Key<T> key)
getExtension in interface GlobalInspectionContextpublic InspectionProfileImpl getCurrentProfile()
public boolean shouldCheck(RefEntity entity, GlobalInspectionTool tool)
GlobalInspectionContextGlobalInspectionTool.runInspection(com.intellij.analysis.AnalysisScope, com.intellij.codeInspection.InspectionManager, com.intellij.codeInspection.GlobalInspectionContext, com.intellij.codeInspection.ProblemDescriptionsProcessor)shouldCheck in interface GlobalInspectionContextentity - the reference graph node to check.tool - the inspection to check.public boolean isSuppressed(PsiElement element, java.lang.String id)
GlobalInspectionContextisSuppressed in interface GlobalInspectionContextelement - the PSI element to check.id - the ID of the inspection to check.public void setCurrentScope(AnalysisScope currentScope)
public void setRerunAction(java.lang.Runnable action)
public void doInspections(AnalysisScope scope)
public RefManager getRefManager()
GlobalInspectionContextgetRefManager in interface GlobalInspectionContextpublic boolean isToCheckMember(RefElement owner, InspectionProfileEntry tool)
public boolean isToCheckFile(PsiFile file, InspectionProfileEntry tool)
protected void launchInspections(AnalysisScope scope)
protected PerformInBackgroundOption createOption()
protected void notifyInspectionsFinished(AnalysisScope scope)
public void performInspectionsWithProgress(AnalysisScope scope, boolean runGlobalToolsOnly, boolean isOfflineInspections)
protected void canceled()
protected void runTools(AnalysisScope scope, boolean runGlobalToolsOnly, boolean isOfflineInspections)
public void initializeTools(java.util.List<Tools> outGlobalTools, java.util.List<Tools> outLocalTools, java.util.List<? super Tools> outGlobalSimpleTools)
public java.util.List<Tools> getUsedTools()
public java.util.Map<java.lang.String,Tools> getTools()
public void codeCleanup(AnalysisScope scope, InspectionProfile profile, java.lang.String commandName, java.lang.Runnable postRunnable, boolean modal, java.util.function.Predicate<? super ProblemDescriptor> shouldApplyFix)
public void codeCleanup(AnalysisScope scope, InspectionProfile profile, java.lang.String commandName, java.lang.Runnable postRunnable, boolean modal)
public static void modalCodeCleanup(Project project, AnalysisScope scope, java.lang.Runnable runnable)
public static void cleanupElements(Project project, java.lang.Runnable runnable, PsiElement... scope)
public static void cleanupElements(Project project, java.lang.Runnable runnable, java.util.function.Predicate<? super ProblemDescriptor> shouldApplyFix, PsiElement... scope)
public static void cleanupElements(Project project, java.lang.Runnable runnable, java.util.List<? extends SmartPsiElementPointer<PsiElement>> elements)
public void close(boolean noSuspiciousCodeFound)
public void cleanup()
cleanup in interface GlobalInspectionContextpublic void incrementJobDoneAmount(JobDescriptor job, java.lang.String message)
incrementJobDoneAmount in interface GlobalInspectionContextpublic void setExternalProfile(InspectionProfileImpl profile)
public StdJobDescriptors getStdJobDescriptors()
getStdJobDescriptors in interface GlobalInspectionContextpublic static void assertUnderDaemonProgress()