From ac7223c6e84e7f327a7e9a72b3d311c7f4c4b11d Mon Sep 17 00:00:00 2001 From: nickdavis Date: Fri, 6 Apr 2001 15:52:33 +0000 Subject: [PATCH] getAction was added to allow removal of JDK 1.3 feature git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268925 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/gui/core/ActionManager.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/antidote/org/apache/tools/ant/gui/core/ActionManager.java b/src/antidote/org/apache/tools/ant/gui/core/ActionManager.java index 64fa94b36..0b245d55f 100644 --- a/src/antidote/org/apache/tools/ant/gui/core/ActionManager.java +++ b/src/antidote/org/apache/tools/ant/gui/core/ActionManager.java @@ -319,6 +319,16 @@ public class ActionManager { } + /** + * Get the Action with the given id. + * + * @param actionID Id of action to get command for. + * @return AntAction associated with the given id. + */ + public AntAction getAction(String actionID) { + return (AntAction) _actions.get(actionID); + } + /** * Add tool tip, Mnemonic, etc. *