public abstract class InspectionProfileEntry extends java.lang.Object implements BatchSuppressableTool
Modifier and Type | Field and Description |
---|---|
protected com.intellij.codeInspection.InspectionProfileEntry.DefaultNameProvider |
myNameProvider |
Constructor and Description |
---|
InspectionProfileEntry() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(Project project) |
javax.swing.JComponent |
createOptionsPanel()
This method is called each time UI is shown.
|
java.lang.String |
getAlternativeID()
For global tools read-only, for local tools would be used instead getID for modules with alternative classpath storage
|
SuppressQuickFix [] |
getBatchSuppressActions(PsiElement element)
Returns the list of suppression actions for the specified element.
|
static java.util.Collection<java.lang.String> |
getBlackList() |
HighlightDisplayLevel |
getDefaultLevel()
DO NOT OVERRIDE this method.
|
protected java.lang.Class<? extends InspectionProfileEntry> |
getDescriptionContextClass() |
java.lang.String |
getDescriptionFileName() |
java.lang.String |
getDisplayName() |
static java.lang.String |
getGeneralGroupName() |
java.lang.String |
getGroupDisplayName() |
java.lang.String |
getGroupKey() |
java.lang.String [] |
getGroupPath() |
java.lang.String |
getMainToolId() |
protected SerializationFilter |
getSerializationFilter()
Deprecated.
|
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
static java.lang.String |
getShortName(java.lang.String className) |
java.lang.String |
getStaticDescription()
Override this method to return a HTML inspection description.
|
protected java.lang.String |
getSuppressId()
Tool ID passed to
InspectionSuppressor . |
static java.util.Set<InspectionSuppressor> |
getSuppressors(PsiElement element) |
void |
initialize(GlobalInspectionContext context) |
boolean |
isEnabledByDefault()
DO NOT OVERRIDE this method.
|
boolean |
isInitialized() |
boolean |
isSuppressedFor(PsiElement element)
Checks if the inspection is suppressed for the specified element.
|
java.lang.String |
loadDescription() |
void |
readSettings(Element node)
Read in settings from XML config.
|
boolean |
showDefaultConfigurationOptions() |
void |
writeSettings(Element node)
Store current settings in XML config.
|
protected volatile com.intellij.codeInspection.InspectionProfileEntry.DefaultNameProvider myNameProvider
public java.lang.String getAlternativeID()
public boolean isSuppressedFor(PsiElement element)
BatchSuppressableTool
isSuppressedFor
in interface BatchSuppressableTool
element
- the element to checkprotected java.lang.String getSuppressId()
InspectionSuppressor
.public SuppressQuickFix [] getBatchSuppressActions(PsiElement element)
BatchSuppressableTool
getBatchSuppressActions
in interface BatchSuppressableTool
element
- the element on which Alt-Enter is pressed, or null if getting the list of available suppression actions in
Inspections tool windowpublic static java.util.Set<InspectionSuppressor> getSuppressors(PsiElement element)
public void cleanup(Project project)
public void initialize(GlobalInspectionContext context)
public java.lang.String getGroupDisplayName()
public java.lang.String getGroupKey()
InspectionEP.groupKey
public java.lang.String [] getGroupPath()
InspectionEP.groupPath
public java.lang.String getDisplayName()
public java.lang.String getShortName()
InspectionEP.shortName
public static java.lang.String getShortName(java.lang.String className)
public HighlightDisplayLevel getDefaultLevel()
InspectionEP.level
public boolean isEnabledByDefault()
InspectionEP.enabledByDefault
public javax.swing.JComponent createOptionsPanel()
null
if no UI options required.public boolean showDefaultConfigurationOptions()
public void readSettings(Element node)
int TOOL_OPTION
)
and bean-style getters/setters (like int getToolOption(), void setToolOption(int)
) to store your options.node
- to read settings from.InvalidDataException
- if the loaded data was not valid.public void writeSettings(Element node)
int TOOL_OPTION
)
and bean-style getters/setters (like int getToolOption(), void setToolOption(int)
) to store your options.node
- to store settings to.public static java.util.Collection<java.lang.String> getBlackList()
@Deprecated protected SerializationFilter getSerializationFilter()
public java.lang.String getStaticDescription()
public java.lang.String getDescriptionFileName()
protected java.lang.Class<? extends InspectionProfileEntry> getDescriptionContextClass()
public boolean isInitialized()
public java.lang.String getMainToolId()
public java.lang.String loadDescription()
public static java.lang.String getGeneralGroupName()