You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by me...@apache.org on 2001/01/12 20:02:27 UTC
cvs commit: jakarta-ant/src/antidote/org/apache/tools/ant/gui/command NewTargetCmd.java
metasim 01/01/12 11:02:27
Modified: src/antidote/org/apache/tools/ant/gui/command
NewTargetCmd.java
Log:
Added ability to add new targets.
Revision Changes Path
1.2 +3 -4 jakarta-ant/src/antidote/org/apache/tools/ant/gui/command/NewTargetCmd.java
Index: NewTargetCmd.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/command/NewTargetCmd.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- NewTargetCmd.java 2001/01/11 22:30:25 1.1
+++ NewTargetCmd.java 2001/01/12 19:02:25 1.2
@@ -53,13 +53,13 @@
*/
package org.apache.tools.ant.gui.command;
import org.apache.tools.ant.gui.core.AppContext;
-import org.apache.tools.ant.gui.event.TargetSelectionEvent;
+import org.apache.tools.ant.gui.event.NewTargetEvent;
import org.apache.tools.ant.gui.acs.*;
/**
* Command for creating a new target.
*
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
* @author Simeon Fitch
*/
public class NewTargetCmd extends AbstractCommand {
@@ -88,8 +88,7 @@
retval.setName(getContext().getResources().
getString(getClass(), "defName") + " " + _count++);
getContext().getEventBus().postEvent(
- new TargetSelectionEvent(
- getContext(), new ACSElement[] { retval }));
+ new NewTargetEvent(getContext(), retval));
}
}