From 26f339eea7a65cb796b009fbe224c8951175e207 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 2 Apr 2008 16:42:39 +0000 Subject: [PATCH] save log only available if not applet mode --- tools/cooja/java/se/sics/cooja/plugins/LogListener.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/LogListener.java b/tools/cooja/java/se/sics/cooja/plugins/LogListener.java index 6a131ea8f..e8c79c70b 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/LogListener.java +++ b/tools/cooja/java/se/sics/cooja/plugins/LogListener.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: LogListener.java,v 1.8 2008/02/12 15:11:40 fros4943 Exp $ + * $Id: LogListener.java,v 1.9 2008/04/02 16:42:39 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -174,7 +174,6 @@ public class LogListener extends VisPlugin { } if (!saveFile.exists() || saveFile.canWrite()) { - logger.debug("SAVING NOW!"); try { BufferedWriter outStream = new BufferedWriter( new OutputStreamWriter( @@ -194,6 +193,11 @@ public class LogListener extends VisPlugin { } }); + if (gui.isVisualizedInApplet()) { + saveButton.setToolTipText("Not available in applet"); + saveButton.setEnabled(false); + } + getContentPane().add(BorderLayout.CENTER, new JScrollPane(logTextArea)); getContentPane().add(BorderLayout.SOUTH, new JScrollPane(filterPanel));