@Deprecated public abstract class AbstractSuppressByNoInspectionCommentFix extends SuppressIntentionAction
Iconable.IconFlags, Iconable.LastComputedIcon
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
myID
Deprecated.
|
EMPTY_ARRAY
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
Constructor and Description |
---|
AbstractSuppressByNoInspectionCommentFix(java.lang.String ID,
boolean replaceOtherSuppressionIds)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createSuppression(Project project,
PsiElement element,
PsiElement container)
Deprecated.
|
protected Language |
getCommentLanguage(PsiElement element)
Deprecated.
|
protected java.util.List<? extends PsiElement> |
getCommentsFor(PsiElement container)
Deprecated.
|
protected abstract PsiElement |
getContainer(PsiElement context)
Deprecated.
|
java.lang.String |
getFamilyName()
Deprecated.
Returns the name of the family of intentions.
|
void |
invoke(Project project,
Editor editor,
PsiElement element)
Deprecated.
Invokes intention action for the element under caret.
|
boolean |
isAvailable(Project project,
Editor editor,
PsiElement context)
Deprecated.
Checks whether this intention is available at a caret offset in file.
|
protected void |
replaceSuppressionComment(PsiElement comment)
Deprecated.
|
getIcon, getText, invoke, isAvailable, isSuppressAll, setText, startInWriteAction, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getElementToMakeWritable
public AbstractSuppressByNoInspectionCommentFix(java.lang.String ID, boolean replaceOtherSuppressionIds)
ID
- Inspection IDreplaceOtherSuppressionIds
- Merge suppression policy. If false new tool id will be append to the end
otherwise replace other idsprotected abstract PsiElement getContainer(PsiElement context)
protected final void replaceSuppressionComment(PsiElement comment)
protected void createSuppression(Project project, PsiElement element, PsiElement container) throws IncorrectOperationException
IncorrectOperationException
protected Language getCommentLanguage(PsiElement element)
element
- quickfix target or existing comment elementpublic boolean isAvailable(Project project, Editor editor, PsiElement context)
SuppressIntentionAction
isAvailable
in class SuppressIntentionAction
project
- the project in which the availability is checked.editor
- the editor in which the intention will be invoked.context
- the element under caret.public void invoke(Project project, Editor editor, PsiElement element) throws IncorrectOperationException
SuppressIntentionAction
invoke
in class SuppressIntentionAction
project
- the project in which the file is opened.editor
- the editor for the file.element
- the element under cursor.IncorrectOperationException
protected java.util.List<? extends PsiElement> getCommentsFor(PsiElement container)
public java.lang.String getFamilyName()
IntentionAction
IntentionManager.registerIntentionAndMetaData(IntentionAction, String...)