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...@locus.apache.org on 2000/11/14 22:50:08 UTC
cvs commit: jakarta-ant/src/antidote/org/apache/tools/ant/gui/command CloseCmd.java
metasim 00/11/14 13:50:08
Modified: src/antidote/org/apache/tools/ant/gui/command CloseCmd.java
Log:
Added ability to define state transition condtions for the enabled state of GUI
actions. As specific events are fired in the GUI the enabled state is updated
for specific actions.
Revision Changes Path
1.2 +3 -1 jakarta-ant/src/antidote/org/apache/tools/ant/gui/command/CloseCmd.java
Index: CloseCmd.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/command/CloseCmd.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CloseCmd.java 2000/11/03 12:04:28 1.1
+++ CloseCmd.java 2000/11/14 21:50:08 1.2
@@ -53,12 +53,13 @@
*/
package org.apache.tools.ant.gui.command;
import org.apache.tools.ant.gui.AppContext;
+import org.apache.tools.ant.gui.event.ProjectClosedEvent;
/**
* Handler for the close command.
*
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
* @author Simeon Fitch
*/
public class CloseCmd implements Command {
@@ -83,5 +84,6 @@
*/
public void execute() {
_context.setProject(null);
+ _context.getEventBus().postEvent(new ProjectClosedEvent(_context));
}
}