public class GenerateDelegateHandler extends java.lang.Object implements LanguageCodeInsightActionHandler
Constructor and Description |
---|
GenerateDelegateHandler() |
Modifier and Type | Method and Description |
---|---|
void |
invoke(Project project,
Editor editor,
PsiFile file) |
static boolean |
isApplicable(PsiFile file,
Editor editor) |
boolean |
isValidFor(Editor editor,
PsiFile file) |
void |
setToCopyJavaDoc(boolean toCopyJavaDoc) |
boolean |
startInWriteAction()
Indicate whether this action should be invoked inside write action.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementToMakeWritable
public boolean isValidFor(Editor editor, PsiFile file)
isValidFor
in interface LanguageCodeInsightActionHandler
public void invoke(Project project, Editor editor, PsiFile file)
invoke
in interface CodeInsightActionHandler
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)
.startInWriteAction
in interface WriteActionAware
true
if the action requires a write action (default), false
otherwise.public void setToCopyJavaDoc(boolean toCopyJavaDoc)