Class TreeAction
java.lang.Object
com.intellij.openapi.actionSystem.AnAction
com.redhat.devtools.intellij.common.actions.TreeAction
- All Implemented Interfaces:
com.intellij.openapi.actionSystem.ActionUpdateThreadAware,com.intellij.openapi.project.PossiblyDumbAware
- Direct Known Subclasses:
StructureTreeAction
public abstract class TreeAction
extends com.intellij.openapi.actionSystem.AnAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.intellij.openapi.actionSystem.ActionUpdateThreadAware
com.intellij.openapi.actionSystem.ActionUpdateThreadAware.Recursive -
Field Summary
Fields inherited from class com.intellij.openapi.actionSystem.AnAction
ACTIONS_KEY, EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionTreeAction(boolean acceptMultipleItems, Class... filters) TreeAction(Class... filters) -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(@NotNull com.intellij.openapi.actionSystem.AnActionEvent anActionEvent) voidactionPerformed(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent, TreePath[] path, Object[] selected) abstract voidactionPerformed(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent, TreePath path, Object selected) protected ObjectAllows to adjust the selected user object for models that users intermediate user object (seeStructureTreeModelprotected ObjectgetSelected(com.intellij.ui.treeStructure.Tree tree) protected Object[]getSelectedNodes(com.intellij.ui.treeStructure.Tree tree) protected @Nullable com.intellij.ui.treeStructure.TreegetTree(com.intellij.openapi.actionSystem.AnActionEvent e) booleanbooleanbooleanbooleanvoidupdate(com.intellij.openapi.actionSystem.AnActionEvent e) Methods inherited from class com.intellij.openapi.actionSystem.AnAction
addSynonym, addTextOverride, addTextOverride, applyTextOverride, applyTextOverride, beforeActionPerformedUpdate, copyActionTextOverride, copyActionTextOverrides, copyFrom, copyShortcutFrom, displayTextInToolbar, getActionUpdateThread, getEventProject, getShortcutSet, getSynonyms, getTemplatePresentation, getTemplateText, isDefaultIcon, isDumbAware, isEnabledInModalContext, isInInjectedContext, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbar
-
Constructor Details
-
TreeAction
-
TreeAction
-
-
Method Details
-
getTree
@Nullable protected @Nullable com.intellij.ui.treeStructure.Tree getTree(com.intellij.openapi.actionSystem.AnActionEvent e) -
getSelected
-
getSelectedNodes
-
adjust
Allows to adjust the selected user object for models that users intermediate user object (seeStructureTreeModel- Parameters:
selected- the original selected user object- Returns:
- the real user object
-
update
public void update(com.intellij.openapi.actionSystem.AnActionEvent e) - Overrides:
updatein classcom.intellij.openapi.actionSystem.AnAction
-
isEnabled
-
isEnabled
-
isVisible
-
isVisible
-
actionPerformed
public void actionPerformed(@NotNull @NotNull com.intellij.openapi.actionSystem.AnActionEvent anActionEvent) - Specified by:
actionPerformedin classcom.intellij.openapi.actionSystem.AnAction
-
actionPerformed
-
actionPerformed
-