public static class MethodThrowsFix.Remove extends MethodThrowsFix
MethodThrowsFix.Add, MethodThrowsFix.Remove, MethodThrowsFix.RemoveFirst
myThrowsCanonicalText
LOG, myEndElement, myStartElement
EMPTY_ARRAY
Constructor and Description |
---|
Remove(PsiMethod method,
PsiClassType exceptionType,
boolean showClassName) |
Modifier and Type | Method and Description |
---|---|
static PsiElement[] |
extractRefsToRemove(PsiMethod method,
PsiType exceptionType) |
protected java.lang.String |
getTextMessageKey() |
void |
invoke(Project project,
PsiFile file,
PsiElement startElement,
PsiElement endElement) |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
getFamilyName, getText, isAvailable
applyFix, applyFix, getEndElement, getName, getStartElement, isAvailable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementToMakeWritable
public Remove(PsiMethod method, PsiClassType exceptionType, boolean showClassName)
public boolean startInWriteAction()
WriteActionAware
false
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.protected java.lang.String getTextMessageKey()
getTextMessageKey
in class MethodThrowsFix
public void invoke(Project project, PsiFile file, PsiElement startElement, PsiElement endElement)
invoke
in class LocalQuickFixOnPsiElement
public static PsiElement[] extractRefsToRemove(PsiMethod method, PsiType exceptionType)