public class DuplicatesInspectionBase extends LocalInspectionTool
Modifier and Type | Field and Description |
---|---|
boolean |
myFilterOutGeneratedCode |
EMPTY_ARRAY, VALID_ID_PATTERN
myNameProvider
Constructor and Description |
---|
DuplicatesInspectionBase() |
Modifier and Type | Method and Description |
---|---|
ProblemDescriptor [] |
checkFile(PsiFile psiFile,
InspectionManager manager,
boolean isOnTheFly)
Override this to report problems at file level.
|
protected LocalQuickFix |
createExtractMethodFix(PsiElement targetElement,
TextRange rangeInElement,
int hash,
int hash2) |
protected LocalQuickFix |
createNavigateToDupeFix(VirtualFile file,
int offsetInOtherFile) |
protected LocalQuickFix |
createShowOtherDupesFix(VirtualFile file,
int offset,
int hash,
int hash2) |
buildVisitor, buildVisitor, getAlternativeID, getID, getProblemElement, getSuppressId, inspectionFinished, inspectionFinished, inspectionStarted, isValidID, processFile, runForWholeFile
cleanup, createOptionsPanel, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupDisplayName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getShortName, getStaticDescription, getSuppressors, initialize, isEnabledByDefault, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions, writeSettings
public ProblemDescriptor [] checkFile(PsiFile psiFile, InspectionManager manager, boolean isOnTheFly)
LocalInspectionTool
checkFile
in class LocalInspectionTool
psiFile
- to check.manager
- InspectionManager to ask for ProblemDescriptor's from.isOnTheFly
- true if called during on the fly editor highlighting. Called from Inspect Code action otherwise.null
if no problems found or not applicable at file level.protected LocalQuickFix createNavigateToDupeFix(VirtualFile file, int offsetInOtherFile)
protected LocalQuickFix createShowOtherDupesFix(VirtualFile file, int offset, int hash, int hash2)
protected LocalQuickFix createExtractMethodFix(PsiElement targetElement, TextRange rangeInElement, int hash, int hash2)