public abstract class TreeAction
extends com.intellij.openapi.actionSystem.AnAction
| Constructor and Description |
|---|
TreeAction(boolean acceptMultipleItems,
java.lang.Class... filters) |
TreeAction(java.lang.Class... filters) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent) |
void |
actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent,
javax.swing.tree.TreePath[] path,
java.lang.Object[] selected) |
abstract void |
actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent,
javax.swing.tree.TreePath path,
java.lang.Object selected) |
protected java.lang.Object |
adjust(java.lang.Object selected)
Allows to adjust the selected user object for models that users intermediate user object
(see
StructureTreeModel |
protected java.lang.Object |
getSelected(com.intellij.ui.treeStructure.Tree tree) |
protected java.lang.Object[] |
getSelectedNodes(com.intellij.ui.treeStructure.Tree tree) |
protected com.intellij.ui.treeStructure.Tree |
getTree(com.intellij.openapi.actionSystem.AnActionEvent e) |
boolean |
isVisible(java.lang.Object selected) |
boolean |
isVisible(java.lang.Object[] selected) |
void |
update(com.intellij.openapi.actionSystem.AnActionEvent e) |
beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbarpublic TreeAction(java.lang.Class... filters)
public TreeAction(boolean acceptMultipleItems,
java.lang.Class... filters)
@Nullable protected com.intellij.ui.treeStructure.Tree getTree(com.intellij.openapi.actionSystem.AnActionEvent e)
protected java.lang.Object getSelected(com.intellij.ui.treeStructure.Tree tree)
protected java.lang.Object[] getSelectedNodes(com.intellij.ui.treeStructure.Tree tree)
protected java.lang.Object adjust(java.lang.Object selected)
StructureTreeModelselected - the original selected user objectpublic void update(com.intellij.openapi.actionSystem.AnActionEvent e)
update in class com.intellij.openapi.actionSystem.AnActionpublic boolean isVisible(java.lang.Object selected)
public boolean isVisible(java.lang.Object[] selected)
public void actionPerformed(@NotNull
com.intellij.openapi.actionSystem.AnActionEvent anActionEvent)
actionPerformed in class com.intellij.openapi.actionSystem.AnActionpublic abstract void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent,
javax.swing.tree.TreePath path,
java.lang.Object selected)
public void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent,
javax.swing.tree.TreePath[] path,
java.lang.Object[] selected)