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:37 UTC

cvs commit: jakarta-ant/src/antidote/org/apache/tools/ant/gui/resources action.properties

metasim     00/11/14 13:50:36

  Modified:    src/antidote/org/apache/tools/ant/gui/resources
                        action.properties
  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.5       +31 -6     jakarta-ant/src/antidote/org/apache/tools/ant/gui/resources/action.properties
  
  Index: action.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/resources/action.properties,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- action.properties	2000/11/11 14:58:54	1.4
  +++ action.properties	2000/11/14 21:50:36	1.5
  @@ -1,38 +1,48 @@
  +# Define the primary menubar items.
   menus=File, Build, Options, Help
   
  -actions=open, close, exit, about, startBuild, changeLookAndFeel
  +# Declare the list of known actions.
  +actions=\
  +    open, save, close, exit, about, startBuild, stopBuild, changeLookAndFeel
   
  -new.name=New
  -new.shortDescription=Create a new project
  -new.parentMenuName=File
  -new.icon=new.gif
  -new.accelerator=control N
  +# Configure the decalred actions.
   
   open.name=Open
   open.shortDescription=Open an existing project
   open.parentMenuName=File
   open.icon=open.gif
   open.accelerator=control O
  +open.enabled=true
   
   save.name=Save
   save.shortDescription=Save the current project
   save.parentMenuName=File
   save.icon=save.gif
   save.accelerator=control S
  +save.enabled=false
   
   close.name=Close
   close.shortDescription=Close the current project
   close.parentMenuName=File
  +close.enabled=false
  +close.disableOn= \
  +    org.apache.tools.ant.gui.event.ProjectClosedEvent, \
  +    org.apache.tools.ant.gui.event.BuildStartedEvent
  +close.enableOn= \
  +    org.apache.tools.ant.gui.event.NewProjectEvent, \
  +    org.apache.tools.ant.gui.event.BuildFinishedEvent
   
   exit.name=Exit
   exit.shortDescription=Quit the application
   exit.parentMenuName=File
   exit.separator=true
  +exit.enabled=true
   
   about.name=About
   about.shortDescription=About this application
   about.parentMenuName=Help
   about.separator=true;
  +about.enabled=true
   
   startBuild.name=Start
   startBuild.shortDescription=Start build of selected target
  @@ -40,13 +50,28 @@
   startBuild.icon=start.gif
   startBuild.separator=true
   startBuild.accelerator=control B
  +startBuild.enabled=false
  +startBuild.enableOn=\
  +    org.apache.tools.ant.gui.event.NewProjectEvent, \
  +    org.apache.tools.ant.gui.event.BuildFinishedEvent
  +startBuild.disableOn=\
  +    org.apache.tools.ant.gui.event.BuildStartedEvent, \
  +    org.apache.tools.ant.gui.event.ProjectClosedEvent
   
   stopBuild.name=Stop
   stopBuild.shortDescription=Stop the current build
   stopBuild.parentMenuName=Build
   stopBuild.icon=stop.gif
   stopBuild.accelerator=control K
  +stopBuild.enabled=false
  +stopBuild.enableOn=\
  +    org.apache.tools.ant.gui.event.BuildStartedEvent
  +stopBuild.disableOn=\
  +    org.apache.tools.ant.gui.event.BuildFinishedEvent
   
   changeLookAndFeel.name=Look and Feel...
   changeLookAndFeel.shortDescription=Change the Look and Feel
   changeLookAndFeel.parentMenuName=Options
  +changeLookAndFeel.enabled=true
  +
  +