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, worksInBatchModeOnlycleanup, getAlternativeID, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions, writeSettingspublic javax.swing.JComponent createOptionsPanel()
InspectionProfileEntrycreateOptionsPanel in class InspectionProfileEntrynull if no UI options required.public RefGraphAnnotator getAnnotator(RefManager refManager)
GlobalInspectionToolUserDataHolder.putUserData(com.intellij.openapi.util.Key, Object).getAnnotator in class GlobalInspectionToolrefManager - the reference graph manager instanceGlobalInspectionTool.isGraphNeeded()public boolean isReadActionNeeded()
GlobalInspectionToolisReadActionNeeded in class GlobalInspectionToolGlobalInspectionTool.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)
GlobalInspectionToolGlobalInspectionTool.checkElement(RefEntity, AnalysisScope, InspectionManager, GlobalInspectionContext).runInspection in class GlobalInspectionToolscope - 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()
InspectionProfileEntryisEnabledByDefault in class GlobalInspectionToolInspectionEP.enabledByDefaultpublic java.lang.String getGroupDisplayName()
getGroupDisplayName in class InspectionProfileEntryInspectionEP.groupDisplayName,
InspectionEP.groupKey,
InspectionEP.groupBundlepublic java.lang.String getShortName()
InspectionProfileEntrygetShortName in class InspectionProfileEntryInspectionEP.shortNamepublic 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 serialized