aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/viewer/Command.java
diff options
context:
space:
mode:
authorfotis <fotis@unknown>2000-06-27 22:14:35 +0000
committerfotis <fotis@unknown>2000-06-27 22:14:35 +0000
commitf11bad903dbef3d04d48b3a219fb0adb139ce953 (patch)
treee941d36bfd0fd6da736eb02c3e42ac84066d1a84 /src/org/apache/fop/viewer/Command.java
parent7724f41ad6e9e484f9a37b54b6a63fe3cb9c90ef (diff)
downloadxmlgraphics-fop-f11bad903dbef3d04d48b3a219fb0adb139ce953.tar.gz
xmlgraphics-fop-f11bad903dbef3d04d48b3a219fb0adb139ce953.zip
replaces calls of System.err.println etc. with calls to the new MessageHandler methods
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193441 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/viewer/Command.java')
-rw-r--r--src/org/apache/fop/viewer/Command.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/apache/fop/viewer/Command.java b/src/org/apache/fop/viewer/Command.java
index ecfa9fbef..fac40424a 100644
--- a/src/org/apache/fop/viewer/Command.java
+++ b/src/org/apache/fop/viewer/Command.java
@@ -6,6 +6,7 @@ package org.apache.fop.viewer;
*/
import java.awt.event.ActionEvent;
+import org.apache.fop.messaging.MessageHandler;
import javax.swing.AbstractAction;
import javax.swing.ImageIcon;
import java.net.*;
@@ -39,7 +40,7 @@ public class Command extends AbstractAction {
String path = IMAGE_DIR + iconName + ".gif";
URL url = getClass().getResource(path);
if (url == null) {
- System.err.println("Icon not found: " + path);
+ MessageHandler.errorln("Icon not found: " + path);
}
else
putValue(SMALL_ICON, new ImageIcon(url));
@@ -51,10 +52,10 @@ public class Command extends AbstractAction {
}
public void doit() {
- System.err.println("Not implemented.");
+ MessageHandler.errorln("Not implemented.");
}
public void undoit() {
- System.err.println("Not implemented.");
+ MessageHandler.errorln("Not implemented.");
}
}