public class RedundantSuppressInspection extends GlobalSimpleInspectionTool
Modifier and Type | Field and Description |
---|---|
boolean |
IGNORE_ALL |
static java.lang.String |
SHORT_NAME |
myNameProvider
Constructor and Description |
---|
RedundantSuppressInspection() |
Modifier and Type | Method and Description |
---|---|
ProblemDescriptor [] |
checkElement(PsiFile psiElement,
RedundantSuppressionDetector extension,
InspectionManager manager) |
void |
checkFile(PsiFile file,
InspectionManager manager,
ProblemsHolder problemsHolder,
GlobalInspectionContext globalContext,
ProblemDescriptionsProcessor problemDescriptionsProcessor) |
protected GlobalInspectionContextBase |
createContext(PsiFile file) |
LocalInspectionTool |
createLocalTool(RedundantSuppressionDetector suppressor,
java.util.Map<java.lang.String,java.util.Set<PsiElement>> toolToSuppressScopes,
java.util.Set<java.lang.String> activeTools) |
javax.swing.JComponent |
createOptionsPanel()
This method is called each time UI is shown.
|
java.lang.String |
getGroupDisplayName() |
java.lang.String |
getHint(QuickFix fix)
Allows TeamCity plugin to serialize quick fixes on server in order to reconstruct them in idea
|
protected InspectionToolWrapper<?,?> [] |
getInspectionTools(PsiElement psiElement,
InspectionManager manager) |
QuickFix |
getQuickFix(java.lang.String hint)
Allows TeamCity plugin to reconstruct quickfixes from server side data
|
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
boolean |
worksInBatchModeOnly()
In some cases we can do highlighting in annotator or high.
|
void |
writeSettings(Element node)
Store current settings in XML config.
|
inspectionFinished, inspectionStarted, isGraphNeeded, isReadActionNeeded, runInspection
checkElement, checkElement, compose, getAdditionalJobs, getAdditionalJobs, getAnnotator, getSharedLocalInspectionTool, getSuppressId, isEnabledByDefault, queryExternalUsagesRequests
cleanup, getAlternativeID, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions
public static final java.lang.String SHORT_NAME
public boolean IGNORE_ALL
public java.lang.String getGroupDisplayName()
getGroupDisplayName
in class InspectionProfileEntry
InspectionEP.groupDisplayName
,
InspectionEP.groupKey
,
InspectionEP.groupBundle
public java.lang.String getShortName()
InspectionProfileEntry
getShortName
in class InspectionProfileEntry
InspectionEP.shortName
public javax.swing.JComponent createOptionsPanel()
InspectionProfileEntry
createOptionsPanel
in class InspectionProfileEntry
null
if no UI options required.public void writeSettings(Element node) throws WriteExternalException
InspectionProfileEntry
int TOOL_OPTION
)
and bean-style getters/setters (like int getToolOption(), void setToolOption(int)
) to store your options.writeSettings
in class InspectionProfileEntry
node
- to store settings to.WriteExternalException
public void checkFile(PsiFile file, InspectionManager manager, ProblemsHolder problemsHolder, GlobalInspectionContext globalContext, ProblemDescriptionsProcessor problemDescriptionsProcessor)
checkFile
in class GlobalSimpleInspectionTool
public ProblemDescriptor [] checkElement(PsiFile psiElement, RedundantSuppressionDetector extension, InspectionManager manager)
public LocalInspectionTool createLocalTool(RedundantSuppressionDetector suppressor, java.util.Map<java.lang.String,java.util.Set<PsiElement>> toolToSuppressScopes, java.util.Set<java.lang.String> activeTools)
protected InspectionToolWrapper<?,?> [] getInspectionTools(PsiElement psiElement, InspectionManager manager)
public QuickFix getQuickFix(java.lang.String hint)
GlobalInspectionTool
getQuickFix
in class GlobalInspectionTool
hint
- a hint to distinguish different quick fixes for one problempublic java.lang.String getHint(QuickFix fix)
GlobalInspectionTool
getHint
in class GlobalInspectionTool
fix
- fix to be serializedpublic boolean worksInBatchModeOnly()
GlobalInspectionTool
worksInBatchModeOnly
in class GlobalInspectionTool
protected GlobalInspectionContextBase createContext(PsiFile file)