public static class MethodThrowsFix.Remove extends MethodThrowsFix
MethodThrowsFix.Add, MethodThrowsFix.Remove, MethodThrowsFix.RemoveFirstmyThrowsCanonicalTextLOG, myEndElement, myStartElementEMPTY_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, isAvailableapplyFix, applyFix, getEndElement, getName, getStartElement, isAvailableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementToMakeWritablepublic Remove(PsiMethod method, PsiClassType exceptionType, boolean showClassName)
public 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.protected java.lang.String getTextMessageKey()
getTextMessageKey in class MethodThrowsFixpublic void invoke(Project project, PsiFile file, PsiElement startElement, PsiElement endElement)
invoke in class LocalQuickFixOnPsiElementpublic static PsiElement[] extractRefsToRemove(PsiMethod method, PsiType exceptionType)