public class UnusedDeclarationPresentation extends DefaultInspectionToolPresentation
Modifier and Type | Class and Description |
---|---|
protected static class |
UnusedDeclarationPresentation.UnusedDeclarationRefElementNode |
LOG, myContext
INSPECTION_RESULTS_ATTRIBUTE_KEY_ATTRIBUTE, INSPECTION_RESULTS_DESCRIPTION_ELEMENT, INSPECTION_RESULTS_HINT_ELEMENT, INSPECTION_RESULTS_HINTS_ELEMENT, INSPECTION_RESULTS_ID_ATTRIBUTE, INSPECTION_RESULTS_PROBLEM_CLASS_ELEMENT, INSPECTION_RESULTS_SEVERITY_ATTRIBUTE, INSPECTION_RESULTS_VALUE_ATTRIBUTE, myContents, myProblemElements, myResolvedElements, mySuppressedElements, myToolWrapper
Constructor and Description |
---|
UnusedDeclarationPresentation(InspectionToolWrapper toolWrapper,
GlobalInspectionContextImpl context) |
Modifier and Type | Method and Description |
---|---|
void |
amnesty(RefEntity element) |
void |
cleanup() |
protected static boolean |
compareVisibilities(RefJavaElement listOwner,
java.lang.String acceptedVisibility) |
protected static boolean |
compareVisibilities(RefJavaElement listOwner,
UnusedSymbolLocalInspectionBase localInspectionTool) |
RefElementNode |
createRefNode(RefEntity entity,
InspectionTreeModel model,
InspectionTreeNode parent) |
void |
exclude(RefEntity element) |
void |
exportResults(java.util.function.Consumer<? super Element> resultConsumer,
RefEntity refEntity,
java.util.function.Predicate<? super CommonProblemDescriptor> excludedDescriptions) |
QuickFix |
findQuickFixes(CommonProblemDescriptor descriptor,
RefEntity entity,
java.lang.String hint) |
DeadHTMLComposer |
getComposer() |
javax.swing.JComponent |
getCustomPreviewPanel(RefEntity entity)
Override the preview panel for the entity.
|
RefFilter |
getFilter() |
QuickFixAction [] |
getQuickFixes(RefEntity... refElements) |
void |
ignoreElement(RefEntity refEntity)
Drops all problems which have been collected for the specified reference graph node.
|
boolean |
isExcluded(RefEntity entity) |
boolean |
isProblemResolved(RefEntity entity) |
void |
patchToolNode(InspectionTreeNode node,
InspectionRVContentProvider provider,
boolean showStructure,
boolean groupByStructure) |
boolean |
showProblemCount() |
protected boolean |
skipEntryPoints(RefJavaElement refElement) |
void |
updateContent() |
addProblemElement, filterResolvedItems, getContext, getDescriptions, getSuppressedProblems, isDisposed, isSuppressed, isSuppressed
addProblemElement, amnesty, exclude, exportResults, exportResults, getContent, getProblemDescriptors, getProblemElements, getProject, getRefManager, getResolvedElements, getResolvedProblems, getSeverity, getSeverityDelegateName, getToolWrapper, hasReportedProblems, isExcluded, isProblemResolved, registerContentEntry, resolveProblem, suppressProblem, suppressProblem, updateProblemElements, writeOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCustomActionsPanel, getCustomPreviewPanel, getToolWrapper, isDummy
amnesty, exclude, exportResults, getContent, getProblemDescriptors, getProblemElements, getProject, getResolvedElements, getResolvedProblems, getSeverity, getSeverity, hasReportedProblems, isExcluded, isProblemResolved, suppressProblem, suppressProblem
addProblemElement, getElement, resolveAllProblemsInElement, resolveProblem
public UnusedDeclarationPresentation(InspectionToolWrapper toolWrapper, GlobalInspectionContextImpl context)
public RefFilter getFilter()
public DeadHTMLComposer getComposer()
getComposer
in interface InspectionToolPresentation
getComposer
in class DefaultInspectionToolPresentation
public boolean isExcluded(RefEntity entity)
isExcluded
in interface InspectionToolResultExporter
isExcluded
in class DefaultInspectionToolResultExporter
public void amnesty(RefEntity element)
amnesty
in interface InspectionToolResultExporter
amnesty
in class DefaultInspectionToolResultExporter
public void exclude(RefEntity element)
exclude
in interface InspectionToolResultExporter
exclude
in class DefaultInspectionToolResultExporter
public void exportResults(java.util.function.Consumer<? super Element> resultConsumer, RefEntity refEntity, java.util.function.Predicate<? super CommonProblemDescriptor> excludedDescriptions)
exportResults
in interface InspectionToolResultExporter
exportResults
in class DefaultInspectionToolResultExporter
public QuickFixAction [] getQuickFixes(RefEntity... refElements)
getQuickFixes
in interface InspectionToolPresentation
getQuickFixes
in class DefaultInspectionToolPresentation
public void patchToolNode(InspectionTreeNode node, InspectionRVContentProvider provider, boolean showStructure, boolean groupByStructure)
public RefElementNode createRefNode(RefEntity entity, InspectionTreeModel model, InspectionTreeNode parent)
public boolean isProblemResolved(RefEntity entity)
isProblemResolved
in interface InspectionToolResultExporter
isProblemResolved
in class DefaultInspectionToolResultExporter
public void updateContent()
updateContent
in interface InspectionToolResultExporter
updateContent
in class DefaultInspectionToolResultExporter
protected boolean skipEntryPoints(RefJavaElement refElement)
protected static boolean compareVisibilities(RefJavaElement listOwner, UnusedSymbolLocalInspectionBase localInspectionTool)
protected static boolean compareVisibilities(RefJavaElement listOwner, java.lang.String acceptedVisibility)
public void ignoreElement(RefEntity refEntity)
ProblemDescriptionsProcessor
ignoreElement
in interface ProblemDescriptionsProcessor
ignoreElement
in class DefaultInspectionToolPresentation
refEntity
- the reference graph node.public void cleanup()
cleanup
in interface InspectionToolPresentation
cleanup
in class DefaultInspectionToolPresentation
public QuickFix findQuickFixes(CommonProblemDescriptor descriptor, RefEntity entity, java.lang.String hint)
findQuickFixes
in interface InspectionToolPresentation
findQuickFixes
in class DefaultInspectionToolPresentation
public javax.swing.JComponent getCustomPreviewPanel(RefEntity entity)
InspectionToolPresentation
public boolean showProblemCount()