Class TreeAction

  • All Implemented Interfaces:
    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 class com.intellij.openapi.actionSystem.AnAction

        com.intellij.openapi.actionSystem.AnAction.TransparentUpdate
    • Field Summary

      • Fields inherited from class com.intellij.openapi.actionSystem.AnAction

        ACTIONS_KEY, EMPTY_ARRAY
    • Constructor Summary

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

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(@NotNull 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 @Nullable com.intellij.ui.treeStructure.Tree getTree​(com.intellij.openapi.actionSystem.AnActionEvent e)  
      boolean isEnabled​(java.lang.Object selected)  
      boolean isEnabled​(java.lang.Object[] selected)  
      boolean isVisible​(java.lang.Object selected)  
      boolean isVisible​(java.lang.Object[] selected)  
      void update​(com.intellij.openapi.actionSystem.AnActionEvent e)  
      • Methods inherited from class com.intellij.openapi.actionSystem.AnAction

        beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, useSmallerFontForTextInToolbar
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.intellij.openapi.project.PossiblyDumbAware

        isDumbAware
    • Constructor Detail

      • TreeAction

        public TreeAction​(java.lang.Class... filters)
      • TreeAction

        public TreeAction​(boolean acceptMultipleItems,
                          java.lang.Class... filters)
    • Method Detail

      • getTree

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

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

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

        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
        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​(java.lang.Object selected)
      • isEnabled

        public boolean isEnabled​(java.lang.Object[] selected)
      • isVisible

        public boolean isVisible​(java.lang.Object selected)
      • isVisible

        public boolean isVisible​(java.lang.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,
                                             javax.swing.tree.TreePath path,
                                             java.lang.Object selected)
      • actionPerformed

        public void actionPerformed​(com.intellij.openapi.actionSystem.AnActionEvent anActionEvent,
                                    javax.swing.tree.TreePath[] path,
                                    java.lang.Object[] selected)