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

    Constructors
    Constructor
    Description
    TreeAction(boolean acceptMultipleItems, Class... filters)
     
    TreeAction(Class... filters)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    actionPerformed(@NotNull com.intellij.openapi.actionSystem.AnActionEvent anActionEvent)
     
    void
    actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent, TreePath[] path, Object[] selected)
     
    abstract void
    actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent, TreePath path, Object selected)
     
    protected Object
    adjust(Object selected)
    Allows to adjust the selected user object for models that users intermediate user object (see StructureTreeModel
    protected Object
    getSelected(com.intellij.ui.treeStructure.Tree tree)
     
    protected Object[]
    getSelectedNodes(com.intellij.ui.treeStructure.Tree tree)
     
    protected @Nullable com.intellij.ui.treeStructure.Tree
    getTree(com.intellij.openapi.actionSystem.AnActionEvent e)
     
    boolean
    isEnabled(Object selected)
     
    boolean
    isEnabled(Object[] selected)
     
    boolean
    isVisible(Object selected)
     
    boolean
    isVisible(Object[] selected)
     
    void
    update(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TreeAction

      public TreeAction(Class... filters)
    • TreeAction

      public TreeAction(boolean acceptMultipleItems, Class... filters)
  • Method Details

    • getTree

      @Nullable protected @Nullable com.intellij.ui.treeStructure.Tree getTree(com.intellij.openapi.actionSystem.AnActionEvent e)
    • getSelected

      protected Object getSelected(com.intellij.ui.treeStructure.Tree tree)
    • getSelectedNodes

      protected Object[] getSelectedNodes(com.intellij.ui.treeStructure.Tree tree)
    • adjust

      protected Object adjust(Object selected)
      Allows to adjust the selected user object for models that users intermediate user object (see StructureTreeModel
      Parameters:
      selected - the original selected user object
      Returns:
      the real user object
    • update

      public void update(com.intellij.openapi.actionSystem.AnActionEvent e)
      Overrides:
      update in class com.intellij.openapi.actionSystem.AnAction
    • isEnabled

      public boolean isEnabled(Object selected)
    • isEnabled

      public boolean isEnabled(Object[] selected)
    • isVisible

      public boolean isVisible(Object selected)
    • isVisible

      public boolean isVisible(Object[] selected)
    • actionPerformed

      public void actionPerformed(@NotNull @NotNull com.intellij.openapi.actionSystem.AnActionEvent anActionEvent)
      Specified by:
      actionPerformed in class com.intellij.openapi.actionSystem.AnAction
    • actionPerformed

      public abstract void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent, TreePath path, Object selected)
    • actionPerformed

      public void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent, TreePath[] path, Object[] selected)