Modifier and Type | Method and Description |
---|---|
ScopeToolState |
addTool(NamedScope scope,
InspectionToolWrapper toolWrapper,
boolean enabled,
HighlightDisplayLevel level) |
ScopeToolState |
addTool(java.lang.String scopeName,
InspectionToolWrapper toolWrapper,
boolean enabled,
HighlightDisplayLevel level) |
void |
collectTools(java.util.List<? super ScopeToolState> result) |
void |
disableTool(PsiElement element) |
void |
enableTool(NamedScope namedScope,
Project project) |
boolean |
equals(java.lang.Object o) |
ScopeToolState |
getDefaultState() |
InspectionToolWrapper |
getEnabledTool(PsiElement element) |
InspectionToolWrapper |
getEnabledTool(PsiElement element,
boolean includeDoNotShow) |
InspectionToolWrapper |
getInspectionTool(PsiElement element) |
HighlightDisplayLevel |
getLevel() |
HighlightDisplayLevel |
getLevel(NamedScope scope,
Project project) |
HighlightDisplayLevel |
getLevel(PsiElement element) |
java.util.List<ScopeToolState> |
getNonDefaultTools() |
java.lang.String |
getShortName() |
InspectionToolWrapper |
getTool()
Warning: Usage of this method is discouraged as if separate tool options are defined for different scopes, it just returns
the options for the first scope which may lead to unexpected results.
|
java.util.List<ScopeToolState> |
getTools() |
boolean |
isEnabled() |
boolean |
isEnabled(PsiElement element) |
void |
removeAllScopes() |
void |
removeScope(java.lang.String scopeName) |
void |
setDefaultState(InspectionToolWrapper toolWrapper,
boolean enabled,
HighlightDisplayLevel level) |
void |
setEnabled(boolean enabled) |
void |
setLevel(HighlightDisplayLevel level) |
void |
setLevel(HighlightDisplayLevel level,
java.lang.String scopeName,
Project project) |
void |
setScope(int idx,
NamedScope namedScope) |
void |
writeExternal(Element inspectionElement) |
public ScopeToolState addTool(NamedScope scope, InspectionToolWrapper toolWrapper, boolean enabled, HighlightDisplayLevel level)
public ScopeToolState addTool(java.lang.String scopeName, InspectionToolWrapper toolWrapper, boolean enabled, HighlightDisplayLevel level)
public InspectionToolWrapper getInspectionTool(PsiElement element)
getInspectionTool
in interface Tools
public java.lang.String getShortName()
getShortName
in interface Tools
public void writeExternal(Element inspectionElement)
public InspectionToolWrapper getTool()
getInspectionTool(PsiElement)
instead.public java.util.List<ScopeToolState> getTools()
public void collectTools(java.util.List<? super ScopeToolState> result)
collectTools
in interface Tools
public ScopeToolState getDefaultState()
getDefaultState
in interface Tools
public void removeScope(java.lang.String scopeName)
public void removeAllScopes()
public void setScope(int idx, NamedScope namedScope)
public HighlightDisplayLevel getLevel(PsiElement element)
public HighlightDisplayLevel getLevel()
public boolean isEnabled(PsiElement element)
public InspectionToolWrapper getEnabledTool(PsiElement element, boolean includeDoNotShow)
getEnabledTool
in interface Tools
public InspectionToolWrapper getEnabledTool(PsiElement element)
getEnabledTool
in interface Tools
public void setEnabled(boolean enabled)
public void enableTool(NamedScope namedScope, Project project)
public void disableTool(PsiElement element)
public HighlightDisplayLevel getLevel(NamedScope scope, Project project)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void setLevel(HighlightDisplayLevel level, java.lang.String scopeName, Project project)
public void setDefaultState(InspectionToolWrapper toolWrapper, boolean enabled, HighlightDisplayLevel level)
public void setLevel(HighlightDisplayLevel level)
public java.util.List<ScopeToolState> getNonDefaultTools()