public interface JvmGroupIntentionAction extends IntentionAction
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
JvmActionGroup |
getActionGroup()
Given two actions, Create method 'foo' in 'SomeJavaClass'
and Create function 'foo' in 'SomeKotlinClass',
we want to display them as a single action with ability to choose target class later.
|
default java.lang.String |
getGroupDisplayText()
Returned value is used as the name of the group when actions are
grouped . |
default JvmActionGroup.RenderData |
getRenderData()
Additional data which is passed to JvmActionGroup in cases
when there is no way to choose
group display text
from grouped actions. |
JvmClass |
getTarget()
Returned class in used for showing Choose Target Class popup
if the
same action is available for more than one target class. |
java.lang.String |
getText()
Returns text to be shown in the list of available actions, if this action
is available.
|
getFamilyName, invoke, isAvailable, startInWriteAction
getElementToMakeWritable
java.lang.String getText()
IntentionAction
getText
in interface IntentionAction
IntentionAction.isAvailable(Project, Editor, PsiFile)
JvmActionGroup getActionGroup()
equal
action groups.default java.lang.String getGroupDisplayText()
grouped
.
This text use terms of the target language, e.g. Create method 'foo' for target class in Java and Create function 'foo' for target class in Kotlin
This method is accessed only if #isAvailable)
returned true
.
default JvmActionGroup.RenderData getRenderData()
group display text
from grouped
actions.
This method is accessed only if IntentionAction.isAvailable(com.intellij.openapi.project.Project, com.intellij.openapi.editor.Editor, com.intellij.psi.PsiFile)
returned true
.
JvmClass getTarget()
same action
is available for more than one target class.
This method is accessed only if IntentionAction.isAvailable(com.intellij.openapi.project.Project, com.intellij.openapi.editor.Editor, com.intellij.psi.PsiFile)
returned true
.