Package actions

Class AddLabelAction

java.lang.Object
com.intellij.openapi.actionSystem.AnAction
actions.AddLabelAction
All Implemented Interfaces:
com.intellij.openapi.actionSystem.ActionUpdateThreadAware, com.intellij.openapi.project.PossiblyDumbAware

public class AddLabelAction extends com.intellij.openapi.actionSystem.AnAction
This class is the action for adding labels.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.intellij.openapi.actionSystem.AnAction

    com.intellij.openapi.actionSystem.AnAction.TransparentUpdate

    Nested classes/interfaces inherited from interface com.intellij.openapi.actionSystem.ActionUpdateThreadAware

    com.intellij.openapi.actionSystem.ActionUpdateThreadAware.Recursive
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
     
    private static boolean
     

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

    ACTIONS_KEY, EMPTY_ARRAY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    actionPerformed(@NotNull com.intellij.openapi.actionSystem.AnActionEvent e)
    This method is called when the action is performed.
    @NotNull String
     
    void
    setDescription(String description)
     
    static void
    setIsEnabled(boolean isEnabled)
     
    void
    update(@NotNull 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, isDefaultIcon, isDumbAware, 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
  • Field Details

    • description

      private String description
    • isEnabled

      private static boolean isEnabled
  • Constructor Details

    • AddLabelAction

      public AddLabelAction()
  • Method Details

    • update

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

      public void actionPerformed(@NotNull @NotNull com.intellij.openapi.actionSystem.AnActionEvent e)
      This method is called when the action is performed. It will show a notification to indicate that the label is successfully added.
      Specified by:
      actionPerformed in class com.intellij.openapi.actionSystem.AnAction
      Parameters:
      e - The action event.
    • setDescription

      public void setDescription(String description)
    • setIsEnabled

      public static void setIsEnabled(boolean isEnabled)
    • getTemplateText

      @NotNull public @NotNull String getTemplateText()
      Overrides:
      getTemplateText in class com.intellij.openapi.actionSystem.AnAction