From a4305736885814dc00393052cea5c502764e4cfa Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 26 Apr 2010 08:05:31 +0000 Subject: [PATCH] restructured focus menu items, removed debugging output --- .../java/se/sics/cooja/plugins/LogListener.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/LogListener.java b/tools/cooja/java/se/sics/cooja/plugins/LogListener.java index 1c715ce61..0b2dc3db1 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.27 2010/03/26 09:29:04 fros4943 Exp $ + * $Id: LogListener.java,v 1.28 2010/04/26 08:05:31 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -254,8 +254,10 @@ public class LogListener extends VisPlugin { popupMenu.addSeparator(); popupMenu.add(new JMenuItem(saveAction)); popupMenu.addSeparator(); - popupMenu.add(new JMenuItem(radioLoggerAction)); - popupMenu.add(new JMenuItem(timeLineAction)); + JMenu focusMenu = new JMenu("Focus (Space)"); + focusMenu.add(new JMenuItem(timeLineAction)); + focusMenu.add(new JMenuItem(radioLoggerAction)); + popupMenu.add(focusMenu); logTable.setComponentPopupMenu(popupMenu); @@ -466,13 +468,13 @@ public class LogListener extends VisPlugin { } }; - private Action timeLineAction = new AbstractAction("to Timeline") { + private Action timeLineAction = new AbstractAction("in Timeline ") { private static final long serialVersionUID = -6358463434933029699L; public void actionPerformed(ActionEvent e) { TimeLine plugin = (TimeLine) simulation.getGUI().getStartedPlugin(TimeLine.class.getName()); if (plugin == null) { - logger.fatal("No Timeline plugin"); + /*logger.fatal("No Timeline plugin");*/ return; } @@ -487,13 +489,13 @@ public class LogListener extends VisPlugin { } }; - private Action radioLoggerAction = new AbstractAction("to Radio Logger") { + private Action radioLoggerAction = new AbstractAction("in Radio Logger") { private static final long serialVersionUID = -3041714249257346688L; public void actionPerformed(ActionEvent e) { RadioLogger plugin = (RadioLogger) simulation.getGUI().getStartedPlugin(RadioLogger.class.getName()); if (plugin == null) { - logger.fatal("No Radio Logger plugin"); + /*logger.fatal("No Radio Logger plugin");*/ return; }