Browse Source

Dialog window for changing the current Look and Feel.

PR:
Obtained from:
Submitted by:	Erik Meade
Reviewed by:	Simeon Fitch


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268172 13f79535-47bb-0310-9956-ffa450edef68
master
metasim 24 years ago
parent
commit
018aa8685b
4 changed files with 14 additions and 2 deletions
  1. +3
    -0
      src/antidote/org/apache/tools/ant/gui/EventResponder.java
  2. +5
    -2
      src/antidote/org/apache/tools/ant/gui/resources/action.properties
  3. +5
    -0
      src/antidote/org/apache/tools/ant/gui/resources/antidote.properties
  4. +1
    -0
      src/antidote/org/apache/tools/ant/gui/version.txt

+ 3
- 0
src/antidote/org/apache/tools/ant/gui/EventResponder.java View File

@@ -129,6 +129,9 @@ class EventResponder {
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.
System.err.println("Unhandled action: " + command);


+ 5
- 2
src/antidote/org/apache/tools/ant/gui/resources/action.properties View File

@@ -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.parentMenuName=Build
stopBuild.icon=stop.gif
stopBuild.accelerator=control K

changeLookAndFeel.name=Look and Feel...
changeLookAndFeel.shortDescription=Change the Look and Feel
changeLookAndFeel.parentMenuName=Options

+ 5
- 0
src/antidote/org/apache/tools/ant/gui/resources/antidote.properties View File

@@ -44,6 +44,11 @@ org.apache.tools.ant.gui.About.message=\
</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


+ 1
- 0
src/antidote/org/apache/tools/ant/gui/version.txt View File

@@ -2,5 +2,6 @@ VERSION=@VERSION@
DATE=@DATE@
CONTRIBUTORS=\
Simeon H.K. Fitch, \
Erik Meade, \
Ant Development Team, \
Icons Copyright &copy; 1998 Dean S. Jones

Loading…
Cancel
Save