public class DefaultFileTemplateUsageInspection extends AbstractBaseJavaLocalInspectionTool
Modifier and Type | Field and Description |
---|---|
boolean |
CHECK_FILE_HEADER
Deprecated.
unused, left for compatibility
|
boolean |
CHECK_METHOD_BODY
Deprecated.
unused, left for compatibility
|
boolean |
CHECK_TRY_CATCH_SECTION
Deprecated.
unused, left for compatibility
|
EMPTY_ARRAY, VALID_ID_PATTERN
myNameProvider
Constructor and Description |
---|
DefaultFileTemplateUsageInspection() |
Modifier and Type | Method and Description |
---|---|
ProblemDescriptor [] |
checkFile(PsiFile file,
InspectionManager manager,
boolean isOnTheFly)
Override this to report problems at file level.
|
static LocalQuickFix |
createEditFileTemplateFix(FileTemplate templateToEdit,
ReplaceWithFileTemplateFix replaceTemplateFix) |
java.lang.String |
getGroupDisplayName() |
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
boolean |
isEnabledByDefault()
DO NOT OVERRIDE this method.
|
buildVisitor, checkClass, checkField, checkMethod
buildVisitor, getAlternativeID, getID, getProblemElement, getSuppressId, inspectionFinished, inspectionFinished, inspectionStarted, isValidID, processFile, runForWholeFile
cleanup, createOptionsPanel, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions, writeSettings
@Deprecated public boolean CHECK_FILE_HEADER
@Deprecated public boolean CHECK_TRY_CATCH_SECTION
@Deprecated public boolean CHECK_METHOD_BODY
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 ProblemDescriptor [] checkFile(PsiFile file, InspectionManager manager, boolean isOnTheFly)
LocalInspectionTool
checkFile
in class LocalInspectionTool
file
- 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.public boolean isEnabledByDefault()
InspectionProfileEntry
isEnabledByDefault
in class InspectionProfileEntry
InspectionEP.enabledByDefault
public static LocalQuickFix createEditFileTemplateFix(FileTemplate templateToEdit, ReplaceWithFileTemplateFix replaceTemplateFix)