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.TransparentUpdateNested classes/interfaces inherited from interface com.intellij.openapi.actionSystem.ActionUpdateThreadAware
com.intellij.openapi.actionSystem.ActionUpdateThreadAware.Recursive -
Field Summary
FieldsFields inherited from class com.intellij.openapi.actionSystem.AnAction
ACTIONS_KEY, EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(@NotNull com.intellij.openapi.actionSystem.AnActionEvent e) This method is called when the action is performed.@NotNull StringvoidsetDescription(String description) static voidsetIsEnabled(boolean isEnabled) voidupdate(@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
-
Field Details
-
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:
updatein classcom.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:
actionPerformedin classcom.intellij.openapi.actionSystem.AnAction- Parameters:
e- The action event.
-
setDescription
-
setIsEnabled
public static void setIsEnabled(boolean isEnabled) -
getTemplateText
- Overrides:
getTemplateTextin classcom.intellij.openapi.actionSystem.AnAction
-