metasim 00/11/11 06:58:54
Modified: src/antidote/org/apache/tools/ant/gui EventResponder.java
version.txt
src/antidote/org/apache/tools/ant/gui/resources
action.properties antidote.properties
Log:
Dialog window for changing the current Look and Feel.
Submitted by: Erik Meade
Reviewed by: Simeon Fitch
Revision Changes Path
1.3 +4 -1
jakarta-ant/src/antidote/org/apache/tools/ant/gui/EventResponder.java
Index: EventResponder.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/EventResponder.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- EventResponder.java 2000/11/06 12:52:42 1.2
+++ EventResponder.java 2000/11/11 14:58:54 1.3
@@ -63,7 +63,7 @@
* The purpose of this class is to watch for events that require some sort
* of action, like opening a file.
*
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
* @author Simeon Fitch
*/
class EventResponder {
@@ -128,6 +128,9 @@
}
else if(command.equals(AboutCmd.ACTION_NAME)) {
new AboutCmd(_context).execute();
+ }
+ else if(command.equals(ChangeLookAndFeelCmd.ACTION_NAME)) {
+ new ChangeLookAndFeelCmd(_context).execute();
}
else {
// XXX log me.
1.3 +1 -0
jakarta-ant/src/antidote/org/apache/tools/ant/gui/version.txt
Index: version.txt
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/version.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- version.txt 2000/11/10 20:41:09 1.2
+++ version.txt 2000/11/11 14:58:54 1.3
@@ -2,5 +2,6 @@
[EMAIL PROTECTED]@
CONTRIBUTORS=\
Simeon H.K. Fitch, \
+ Erik Meade, \
Ant Development Team, \
Icons Copyright © 1998 Dean S. Jones
1.4 +5 -2
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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- action.properties 2000/11/07 14:22:42 1.3
+++ action.properties 2000/11/11 14:58:54 1.4
@@ -1,6 +1,6 @@
-menus=File, Build, Help
+menus=File, Build, Options, Help
-actions=open, close, exit, about, startBuild
+actions=open, close, exit, about, startBuild, changeLookAndFeel
new.name=New
new.shortDescription=Create a new project
@@ -47,3 +47,6 @@
stopBuild.icon=stop.gif
stopBuild.accelerator=control K
+changeLookAndFeel.name=Look and Feel...
+changeLookAndFeel.shortDescription=Change the Look and Feel
+changeLookAndFeel.parentMenuName=Options
1.7 +5 -0
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.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- antidote.properties 2000/11/11 04:49:45 1.6
+++ antidote.properties 2000/11/11 14:58:54 1.7
@@ -44,6 +44,11 @@
</html>
+org.apache.tools.ant.gui.ChangeLookAndFeel.title=Change Look and Feel
+org.apache.tools.ant.gui.ChangeLookAndFeel.ok=OK
+org.apache.tools.ant.gui.ChangeLookAndFeel.error=Error setting look and
feel:
+
+
# Properties file for BeanInfo strings
org.apache.tools.ant.gui.acs.ACSTargetElementBeanInfo.beanName=Target