public class SuppressFix extends AbstractBatchSuppressByNoInspectionCommentFix
Iconable.IconFlags, Iconable.LastComputedIconmyIDEMPTY_ARRAYICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY| Constructor and Description |
|---|
SuppressFix(HighlightDisplayKey key) |
SuppressFix(java.lang.String ID) |
| Modifier and Type | Method and Description |
|---|---|
PsiJavaDocumentedElement |
getContainer(PsiElement context) |
java.lang.String |
getFamilyName() |
java.lang.String |
getText() |
void |
invoke(Project project,
PsiElement element) |
boolean |
isAvailable(Project project,
PsiElement context) |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
protected boolean |
use15Suppressions(PsiJavaDocumentedElement container) |
applyFix, createSuppression, getCommentLanguage, getCommentsFor, getIcon, getName, isShouldBeAppliedToInjectionHost, isSuppressAll, replaceSuppressionComment, replaceSuppressionComments, setShouldBeAppliedToInjectionHost, setText, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementToMakeWritablepublic SuppressFix(HighlightDisplayKey key)
public SuppressFix(java.lang.String ID)
public java.lang.String getText()
getText in class AbstractBatchSuppressByNoInspectionCommentFixpublic PsiJavaDocumentedElement getContainer(PsiElement context)
getContainer in interface ContainerBasedSuppressQuickFixgetContainer in class AbstractBatchSuppressByNoInspectionCommentFixpublic boolean isAvailable(Project project, PsiElement context)
isAvailable in interface SuppressQuickFixisAvailable in class AbstractBatchSuppressByNoInspectionCommentFixpublic boolean startInWriteAction()
WriteActionAwarefalse if e.g. modal dialog is shown inside the action.
If false is returned the action itself is responsible for starting write action
when needed, by calling Application.runWriteAction(Runnable).true if the action requires a write action (default), false otherwise.public void invoke(Project project, PsiElement element) throws IncorrectOperationException
invoke in class AbstractBatchSuppressByNoInspectionCommentFixIncorrectOperationExceptionpublic java.lang.String getFamilyName()
getFamilyName in interface QuickFix<ProblemDescriptor>getFamilyName in class AbstractBatchSuppressByNoInspectionCommentFixQuickFix.getName().protected boolean use15Suppressions(PsiJavaDocumentedElement container)