ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meta...@locus.apache.org
Subject cvs commit: jakarta-ant/src/antidote/org/apache/tools/ant/gui/command CloseCmd.java
Date Tue, 14 Nov 2000 21:50:08 GMT
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));
       }
   }
  
  
  

Mime
View raw message