public class UnusedDeclarationPresentation extends DefaultInspectionToolPresentation
| Modifier and Type | Class and Description |
|---|---|
protected static class |
UnusedDeclarationPresentation.UnusedDeclarationRefElementNode |
LOG, myContextINSPECTION_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, isSuppressedaddProblemElement, amnesty, exclude, exportResults, exportResults, getContent, getProblemDescriptors, getProblemElements, getProject, getRefManager, getResolvedElements, getResolvedProblems, getSeverity, getSeverityDelegateName, getToolWrapper, hasReportedProblems, isExcluded, isProblemResolved, registerContentEntry, resolveProblem, suppressProblem, suppressProblem, updateProblemElements, writeOutputclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCustomActionsPanel, getCustomPreviewPanel, getToolWrapper, isDummyamnesty, exclude, exportResults, getContent, getProblemDescriptors, getProblemElements, getProject, getResolvedElements, getResolvedProblems, getSeverity, getSeverity, hasReportedProblems, isExcluded, isProblemResolved, suppressProblem, suppressProblemaddProblemElement, getElement, resolveAllProblemsInElement, resolveProblempublic UnusedDeclarationPresentation(InspectionToolWrapper toolWrapper, GlobalInspectionContextImpl context)
public RefFilter getFilter()
public DeadHTMLComposer getComposer()
getComposer in interface InspectionToolPresentationgetComposer in class DefaultInspectionToolPresentationpublic boolean isExcluded(RefEntity entity)
isExcluded in interface InspectionToolResultExporterisExcluded in class DefaultInspectionToolResultExporterpublic void amnesty(RefEntity element)
amnesty in interface InspectionToolResultExporteramnesty in class DefaultInspectionToolResultExporterpublic void exclude(RefEntity element)
exclude in interface InspectionToolResultExporterexclude in class DefaultInspectionToolResultExporterpublic void exportResults(java.util.function.Consumer<? super Element> resultConsumer,
RefEntity refEntity,
java.util.function.Predicate<? super CommonProblemDescriptor> excludedDescriptions)
exportResults in interface InspectionToolResultExporterexportResults in class DefaultInspectionToolResultExporterpublic QuickFixAction [] getQuickFixes(RefEntity... refElements)
getQuickFixes in interface InspectionToolPresentationgetQuickFixes in class DefaultInspectionToolPresentationpublic 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 InspectionToolResultExporterisProblemResolved in class DefaultInspectionToolResultExporterpublic void updateContent()
updateContent in interface InspectionToolResultExporterupdateContent in class DefaultInspectionToolResultExporterprotected 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)
ProblemDescriptionsProcessorignoreElement in interface ProblemDescriptionsProcessorignoreElement in class DefaultInspectionToolPresentationrefEntity - the reference graph node.public void cleanup()
cleanup in interface InspectionToolPresentationcleanup in class DefaultInspectionToolPresentationpublic QuickFix findQuickFixes(CommonProblemDescriptor descriptor, RefEntity entity, java.lang.String hint)
findQuickFixes in interface InspectionToolPresentationfindQuickFixes in class DefaultInspectionToolPresentationpublic javax.swing.JComponent getCustomPreviewPanel(RefEntity entity)
InspectionToolPresentationpublic boolean showProblemCount()