public interface InspectionProfile
extends java.lang.Comparable
Modifier and Type | Method and Description |
---|---|
java.util.List<Tools> |
getAllEnabledInspectionTools(Project project) |
java.lang.String |
getDisplayName() |
HighlightDisplayLevel |
getErrorLevel(HighlightDisplayKey inspectionToolKey,
PsiElement element) |
InspectionToolWrapper |
getInspectionTool(java.lang.String shortName,
Project project) |
InspectionToolWrapper |
getInspectionTool(java.lang.String shortName,
PsiElement element)
If you need to modify tool's settings, please use
modifyToolSettings(com.intellij.openapi.util.Key<T>, com.intellij.psi.PsiElement, com.intellij.util.Consumer<? super T>) |
InspectionToolWrapper [] |
getInspectionTools(PsiElement element) |
java.lang.String |
getName() |
java.lang.String |
getSingleTool() |
<T extends InspectionProfileEntry> |
getUnwrappedTool(Key<T> shortNameKey,
PsiElement element)
Returns (unwrapped) inspection
|
InspectionProfileEntry |
getUnwrappedTool(java.lang.String shortName,
PsiElement element)
Returns (unwrapped) inspection
|
boolean |
isExecutable(Project project) |
default boolean |
isToolEnabled(HighlightDisplayKey key) |
boolean |
isToolEnabled(HighlightDisplayKey key,
PsiElement element) |
<T extends InspectionProfileEntry> |
modifyToolSettings(Key<T> shortNameKey,
PsiElement psiElement,
Consumer<? super T> toolConsumer)
Allows a plugin to modify the settings of the inspection tool with the specified ID programmatically, without going through
the settings dialog.
|
java.lang.String getName()
HighlightDisplayLevel getErrorLevel(HighlightDisplayKey inspectionToolKey, PsiElement element)
InspectionToolWrapper getInspectionTool(java.lang.String shortName, PsiElement element)
modifyToolSettings(com.intellij.openapi.util.Key<T>, com.intellij.psi.PsiElement, com.intellij.util.Consumer<? super T>)
InspectionToolWrapper
getUnwrappedTool(String, PsiElement)
InspectionToolWrapper getInspectionTool(java.lang.String shortName, Project project)
InspectionProfileEntry getUnwrappedTool(java.lang.String shortName, PsiElement element)
<T extends InspectionProfileEntry> T getUnwrappedTool(Key<T> shortNameKey, PsiElement element)
<T extends InspectionProfileEntry> void modifyToolSettings(Key<T> shortNameKey, PsiElement psiElement, Consumer<? super T> toolConsumer)
shortNameKey
- the ID of the tool to change.psiElement
- the element for which the settings should be changed.toolConsumer
- the callback that receives the tool.InspectionToolWrapper [] getInspectionTools(PsiElement element)
element
- context elementboolean isToolEnabled(HighlightDisplayKey key, PsiElement element)
default boolean isToolEnabled(HighlightDisplayKey key)
boolean isExecutable(Project project)
java.lang.String getSingleTool()
InspectionProfileImpl.setSingleTool(String)
java.lang.String getDisplayName()