metasim 00/11/16 11:41:07
Modified: src/antidote/org/apache/tools/ant/gui/resources
action.properties antidote.properties
Log:
Added save and saveas action implementation.
Revision Changes Path
1.7 +22 -5
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.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- action.properties 2000/11/16 18:32:31 1.6
+++ action.properties 2000/11/16 19:41:04 1.7
@@ -3,12 +3,12 @@
# Declare the list of known actions.
actions=\
- open, save, close, exit, about, startBuild, stopBuild, \
+ open, save, saveas, close, exit, about, startBuild, stopBuild, \
notifyEmacs, changeLookAndFeel
# Configure the decalred actions.
-open.name=Open
+open.name=Open...
open.shortDescription=Open an existing project
open.parentMenuName=File
open.icon=open.gif
@@ -21,6 +21,23 @@
save.icon=save.gif
save.accelerator=control S
save.enabled=false
+save.disableOn= \
+ org.apache.tools.ant.gui.event.ProjectClosedEvent, \
+ org.apache.tools.ant.gui.event.BuildStartedEvent
+save.enableOn= \
+ org.apache.tools.ant.gui.event.NewProjectEvent, \
+ org.apache.tools.ant.gui.event.BuildFinishedEvent
+
+saveas.name=Save As...
+saveas.shortDescription=Save to a specific file
+saveas.parentMenuName=File
+saveas.enabled=false
+saveas.disableOn= \
+ org.apache.tools.ant.gui.event.ProjectClosedEvent, \
+ org.apache.tools.ant.gui.event.BuildStartedEvent
+saveas.enableOn= \
+ org.apache.tools.ant.gui.event.NewProjectEvent, \
+ org.apache.tools.ant.gui.event.BuildFinishedEvent
close.name=Close
close.shortDescription=Close the current project
@@ -39,13 +56,13 @@
exit.separator=true
exit.enabled=true
-about.name=About
+about.name=About...
about.shortDescription=About this application
about.parentMenuName=Help
about.separator=true;
about.enabled=true
-startBuild.name=Start
+startBuild.name=Start Build
startBuild.shortDescription=Start build of selected target
startBuild.parentMenuName=Build
startBuild.icon=start.gif
@@ -59,7 +76,7 @@
org.apache.tools.ant.gui.event.BuildStartedEvent, \
org.apache.tools.ant.gui.event.ProjectClosedEvent
-stopBuild.name=Stop
+stopBuild.name=Stop Build
stopBuild.shortDescription=Stop the current build
stopBuild.parentMenuName=Build
stopBuild.icon=stop.gif
1.10 +10 -4
jakarta-ant/src/antidote/org/apache/tools/ant/gui/resources/antidote.properties
Index: antidote.properties
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/resources/antidote.properties,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- antidote.properties 2000/11/14 19:48:12 1.9
+++ antidote.properties 2000/11/16 19:41:05 1.10
@@ -36,12 +36,18 @@
org.apache.tools.ant.gui.command.LoadFileCmd.loadError=The file "{0}" could
not be loaded.
org.apache.tools.ant.gui.command.DisplayErrorCmd.title=Error...
+org.apache.tools.ant.gui.command.SaveCmd.saveError=Could not save to "{0}".
+org.apache.tools.ant.gui.command.SaveCmd.noProject=No project to save.
+org.apache.tools.ant.gui.command.SaveCmd.title=Overwrite?
+org.apache.tools.ant.gui.command.SaveCmd.overwrite=Overwrite file "{0}"?
+
org.apache.tools.ant.gui.About.title=About
org.apache.tools.ant.gui.About.ok=OK
org.apache.tools.ant.gui.About.message=\
<html><h1>Antidote</h1> \
- <p>Copyright © 2000 The Apache Software Foundation.</p> \
- <p>All rights reserved.</p> \
+ <p>Copyright © 2000 The Apache Software Foundation. <br>\
+ All rights reserved.</p><br> \
+ <p>Visit http://jakarta.apache.org/ant for more information.</p><br> \
<table> \
<tr><td align="right"><b>Version</b>:</td><td>{0}</td></tr> \
<tr><td align="right"><b>Date</b>:</td><td>{1}</td></tr> \
@@ -49,8 +55,8 @@
<td>{2}</td></tr> \
</table> \
<hr> \
- <p>Icons Copyright © 1998 Dean S. Jones ([EMAIL PROTECTED])</p> \
- <p>http://jfa.javalobby.org/projects/icons</p> \
+ <p>Icons Copyright © 1998 Dean S. Jones ([EMAIL PROTECTED])<br> \
+ http://jfa.javalobby.org/projects/icons</p> \
</html>