Browse Source

removed the use of JDK 1.3 feature (Button.getAction)

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268924 13f79535-47bb-0310-9956-ffa450edef68
master
nickdavis 24 years ago
parent
commit
6c8512b897
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/antidote/org/apache/tools/ant/gui/command/NewElementCmd.java

+ 5
- 3
src/antidote/org/apache/tools/ant/gui/command/NewElementCmd.java View File

@@ -109,11 +109,11 @@ public class NewElementCmd extends AbstractCommand {
String name = button.getText();

// Get the AntAction
Action action = button.getAction();
if (!(action instanceof AntAction)) {
String cmdStr = button.getActionCommand();
AntAction antAction = getContext().getActions().getAction(cmdStr);
if (antAction == null) {
return;
}
AntAction antAction = (AntAction) action;

ACSElement e = vals[vals.length - 1];
@@ -153,3 +153,5 @@ public class NewElementCmd extends AbstractCommand {
}
}




Loading…
Cancel
Save