public class EmptyMethodInspection extends GlobalJavaBatchInspectionTool
Modifier and Type | Field and Description |
---|---|
boolean |
commentsAreContent |
JDOMExternalizableStringList |
EXCLUDE_ANNOS |
myNameProvider
Constructor and Description |
---|
EmptyMethodInspection() |
Modifier and Type | Method and Description |
---|---|
CommonProblemDescriptor [] |
checkElement(RefEntity refEntity,
AnalysisScope scope,
InspectionManager manager,
GlobalInspectionContext globalContext,
ProblemDescriptionsProcessor processor)
Processes and reports problems for a single element of the completed reference graph.
|
javax.swing.JComponent |
createOptionsPanel()
This method is called each time UI is shown.
|
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
|
LocalQuickFix |
getQuickFix(java.lang.String hint)
Allows TeamCity plugin to reconstruct quickfixes from server side data
|
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
protected boolean |
queryExternalUsagesRequests(RefManager manager,
GlobalJavaInspectionContext context,
ProblemDescriptionsProcessor descriptionsProcessor) |
void |
writeSettings(Element node)
Store current settings in XML config.
|
isReadActionNeeded, queryExternalUsagesRequests
checkElement, compose, getAdditionalJobs, getAdditionalJobs, getAnnotator, getSharedLocalInspectionTool, getSuppressId, isEnabledByDefault, isGraphNeeded, runInspection, worksInBatchModeOnly
cleanup, getAlternativeID, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions
public final JDOMExternalizableStringList EXCLUDE_ANNOS
public boolean commentsAreContent
public CommonProblemDescriptor [] checkElement(RefEntity refEntity, AnalysisScope scope, InspectionManager manager, GlobalInspectionContext globalContext, ProblemDescriptionsProcessor processor)
GlobalInspectionTool
checkElement
in class GlobalInspectionTool
refEntity
- the reference graph element to check for problems.scope
- the scope on which analysis was invoked.manager
- the inspection manager instance for the project on which the inspection was run.globalContext
- the context for the current global inspection run.processor
- the collector for problems reported by the inspectionprotected boolean queryExternalUsagesRequests(RefManager manager, GlobalJavaInspectionContext context, ProblemDescriptionsProcessor descriptionsProcessor)
queryExternalUsagesRequests
in class GlobalJavaBatchInspectionTool
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 void writeSettings(Element node) throws WriteExternalException
InspectionProfileEntry
int TOOL_OPTION
)
and bean-style getters/setters (like int getToolOption(), void setToolOption(int)
) to store your options.writeSettings
in class InspectionProfileEntry
node
- to store settings to.WriteExternalException
public java.lang.String getHint(QuickFix fix)
GlobalInspectionTool
getHint
in class GlobalInspectionTool
fix
- fix to be serializedpublic LocalQuickFix getQuickFix(java.lang.String hint)
GlobalInspectionTool
getQuickFix
in class GlobalInspectionTool
hint
- a hint to distinguish different quick fixes for one problempublic javax.swing.JComponent createOptionsPanel()
InspectionProfileEntry
createOptionsPanel
in class InspectionProfileEntry
null
if no UI options required.