public class UnwrapHandler extends java.lang.Object implements CodeInsightActionHandler
| Modifier and Type | Class and Description |
|---|---|
protected static class |
UnwrapHandler.MyUnwrapAction |
| Modifier and Type | Field and Description |
|---|---|
static int |
HIGHLIGHTER_LEVEL |
| Constructor and Description |
|---|
UnwrapHandler() |
| Modifier and Type | Method and Description |
|---|---|
static TextAttributes |
getTestAttributesForExtract() |
void |
invoke(Project project,
Editor editor,
PsiFile file) |
protected void |
selectOption(java.util.List<? extends UnwrapHandler.MyUnwrapAction> options,
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 static final int HIGHLIGHTER_LEVEL
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).startInWriteAction in interface WriteActionAwaretrue if the action requires a write action (default), false otherwise.public void invoke(Project project, Editor editor, PsiFile file)
invoke in interface CodeInsightActionHandlerprotected void selectOption(java.util.List<? extends UnwrapHandler.MyUnwrapAction> options, Editor editor, PsiFile file)
public static TextAttributes getTestAttributesForExtract()