public class DuplicatesInspectionBase extends LocalInspectionTool
| Modifier and Type | Field and Description |
|---|---|
boolean |
myFilterOutGeneratedCode |
EMPTY_ARRAY, VALID_ID_PATTERNmyNameProvider| 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, runForWholeFilecleanup, createOptionsPanel, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupDisplayName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getShortName, getStaticDescription, getSuppressors, initialize, isEnabledByDefault, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions, writeSettingspublic ProblemDescriptor [] checkFile(PsiFile psiFile, InspectionManager manager, boolean isOnTheFly)
LocalInspectionToolcheckFile in class LocalInspectionToolpsiFile - 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)