public class UnusedLibrariesInspection extends GlobalInspectionTool
Modifier and Type | Field and Description |
---|---|
boolean |
IGNORE_LIBRARY_PARTS |
myNameProvider
Constructor and Description |
---|
UnusedLibrariesInspection() |
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
createOptionsPanel()
This method is called each time UI is shown.
|
RefGraphAnnotator |
getAnnotator(RefManager refManager)
Returns the annotator which will receive callbacks while the reference graph
is being built.
|
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
|
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 |
isEnabledByDefault()
DO NOT OVERRIDE this method.
|
boolean |
isReadActionNeeded()
True by default to ensure third party plugins are not broken
|
void |
runInspection(AnalysisScope scope,
InspectionManager manager,
GlobalInspectionContext globalContext,
ProblemDescriptionsProcessor problemDescriptionsProcessor)
Runs the global inspection.
|
checkElement, checkElement, compose, getAdditionalJobs, getAdditionalJobs, getSharedLocalInspectionTool, getSuppressId, isGraphNeeded, queryExternalUsagesRequests, worksInBatchModeOnly
cleanup, getAlternativeID, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions, writeSettings
public javax.swing.JComponent createOptionsPanel()
InspectionProfileEntry
createOptionsPanel
in class InspectionProfileEntry
null
if no UI options required.public RefGraphAnnotator getAnnotator(RefManager refManager)
GlobalInspectionTool
UserDataHolder.putUserData(com.intellij.openapi.util.Key, Object)
.getAnnotator
in class GlobalInspectionTool
refManager
- the reference graph manager instanceGlobalInspectionTool.isGraphNeeded()
public boolean isReadActionNeeded()
GlobalInspectionTool
isReadActionNeeded
in class GlobalInspectionTool
GlobalInspectionTool.runInspection(AnalysisScope, InspectionManager, GlobalInspectionContext, ProblemDescriptionsProcessor)
) in ReadAction,
false if ReadAction is taken by inspection itselfpublic void runInspection(AnalysisScope scope, InspectionManager manager, GlobalInspectionContext globalContext, ProblemDescriptionsProcessor problemDescriptionsProcessor)
GlobalInspectionTool
GlobalInspectionTool.checkElement(RefEntity, AnalysisScope, InspectionManager, GlobalInspectionContext)
.runInspection
in class GlobalInspectionTool
scope
- the scope on which the inspection was run.manager
- the inspection manager instance for the project on which the inspection was run.globalContext
- the context for the current global inspection run.problemDescriptionsProcessor
- the collector for problems reported by the inspectionpublic boolean isEnabledByDefault()
InspectionProfileEntry
isEnabledByDefault
in class GlobalInspectionTool
InspectionEP.enabledByDefault
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 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 serialized