public abstract class ExternalSystemNodeAction<T> extends ExternalSystemAction
AnAction.TransparentUpdate
ACTIONS_KEY, EMPTY_ARRAY
Constructor and Description |
---|
ExternalSystemNodeAction(java.lang.Class<T> externalDataClazz) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(AnActionEvent e)
Implement this method to provide your action handler.
|
protected VirtualFile |
getExternalConfig(ExternalConfigPathAware data,
ProjectSystemId externalSystemId) |
protected <T> T |
getExternalData(AnActionEvent e,
java.lang.Class<T> dataClass) |
protected ExternalSystemUiAware |
getExternalSystemUiAware(AnActionEvent e) |
protected boolean |
isEnabled(AnActionEvent e) |
protected boolean |
isIgnoredNode(AnActionEvent e) |
protected abstract void |
perform(Project project,
ProjectSystemId projectSystemId,
T externalData,
AnActionEvent e) |
getProject, getSystemId, hasProject, isVisible, setDescription, setText, setText, update
addTextOverride, applyTextOverride, beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDumbAware
public ExternalSystemNodeAction(java.lang.Class<T> externalDataClazz)
protected boolean isEnabled(AnActionEvent e)
isEnabled
in class ExternalSystemAction
protected abstract void perform(Project project, ProjectSystemId projectSystemId, T externalData, AnActionEvent e)
public void actionPerformed(AnActionEvent e)
AnAction
actionPerformed
in class AnAction
e
- Carries information on the invocation placeprotected ExternalSystemUiAware getExternalSystemUiAware(AnActionEvent e)
protected <T> T getExternalData(AnActionEvent e, java.lang.Class<T> dataClass)
protected boolean isIgnoredNode(AnActionEvent e)
protected VirtualFile getExternalConfig(ExternalConfigPathAware data, ProjectSystemId externalSystemId)