public class JavaImplementMethodsHandler extends java.lang.Object implements ContextAwareActionHandler, LanguageCodeInsightActionHandler
| Constructor and Description |
|---|
JavaImplementMethodsHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(Project project,
Editor editor,
PsiFile file) |
boolean |
isAvailableForQuickList(Editor editor,
PsiFile file,
DataContext dataContext)
Handlers could provide useful hints when they are actually not available, e.g.
|
boolean |
isValidFor(Editor editor,
PsiFile file) |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementToMakeWritablepublic boolean isValidFor(Editor editor, PsiFile file)
isValidFor in interface LanguageCodeInsightActionHandlerpublic void invoke(Project project, Editor editor, PsiFile file)
invoke in interface CodeInsightActionHandlerpublic 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).startInWriteAction in interface WriteActionAwaretrue if the action requires a write action (default), false otherwise.public boolean isAvailableForQuickList(Editor editor, PsiFile file, DataContext dataContext)
ContextAwareActionHandlerisAvailableForQuickList in interface ContextAwareActionHandler