From e56dccb84056e6fbe10d0e86b2992453afe9d0b2 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 12 Oct 2010 10:56:25 +0000 Subject: [PATCH] save time formatting to config --- tools/cooja/java/se/sics/cooja/plugins/LogListener.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/LogListener.java b/tools/cooja/java/se/sics/cooja/plugins/LogListener.java index c3533f140..d711e6351 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.33 2010/10/12 10:04:35 fros4943 Exp $ + * $Id: LogListener.java,v 1.34 2010/10/12 10:56:25 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -468,6 +468,10 @@ public class LogListener extends VisPlugin { element.setText(filterTextField.getText()); config.add(element); + if (formatTimeString) { + element = new Element("formatted_time"); + config.add(element); + } if (backgroundColors) { element = new Element("coloring"); config.add(element); @@ -488,6 +492,9 @@ public class LogListener extends VisPlugin { } else if ("coloring".equals(name)) { backgroundColors = true; colorCheckbox.setSelected(true); + } else if ("formatted_time".equals(name)) { + formatTimeString = true; + recacheAllTimeStrings(); } }