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, runInspectioncheckElement, checkElement, compose, getAdditionalJobs, getAdditionalJobs, getAnnotator, getSharedLocalInspectionTool, getSuppressId, isEnabledByDefault, queryExternalUsagesRequestscleanup, getAlternativeID, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptionspublic static final java.lang.String SHORT_NAME
public boolean IGNORE_ALL
public java.lang.String getGroupDisplayName()
getGroupDisplayName in class InspectionProfileEntryInspectionEP.groupDisplayName,
InspectionEP.groupKey,
InspectionEP.groupBundlepublic java.lang.String getShortName()
InspectionProfileEntrygetShortName in class InspectionProfileEntryInspectionEP.shortNamepublic javax.swing.JComponent createOptionsPanel()
InspectionProfileEntrycreateOptionsPanel in class InspectionProfileEntrynull if no UI options required.public void writeSettings(Element node)
throws WriteExternalException
InspectionProfileEntryint TOOL_OPTION)
and bean-style getters/setters (like int getToolOption(), void setToolOption(int)) to store your options.writeSettings in class InspectionProfileEntrynode - to store settings to.WriteExternalExceptionpublic void checkFile(PsiFile file, InspectionManager manager, ProblemsHolder problemsHolder, GlobalInspectionContext globalContext, ProblemDescriptionsProcessor problemDescriptionsProcessor)
checkFile in class GlobalSimpleInspectionToolpublic 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)
GlobalInspectionToolgetQuickFix in class GlobalInspectionToolhint - a hint to distinguish different quick fixes for one problempublic java.lang.String getHint(QuickFix fix)
GlobalInspectionToolgetHint in class GlobalInspectionToolfix - fix to be serializedpublic boolean worksInBatchModeOnly()
GlobalInspectionToolworksInBatchModeOnly in class GlobalInspectionToolprotected GlobalInspectionContextBase createContext(PsiFile file)