From e99b08b89657c8c806084633d13ad95908899458 Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Sun, 7 Jan 2024 20:17:14 +0100 Subject: [PATCH] LogListener: re-enable context menu This menu was removed in 3d2c758149, put it back so the log window behaves like any other editor-like window. --- java/org/contikios/cooja/plugins/LogListener.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/java/org/contikios/cooja/plugins/LogListener.java b/java/org/contikios/cooja/plugins/LogListener.java index f1023e7bd..dfc696ffb 100644 --- a/java/org/contikios/cooja/plugins/LogListener.java +++ b/java/org/contikios/cooja/plugins/LogListener.java @@ -538,14 +538,13 @@ public void mouseClicked(MouseEvent e) { adjuster.packColumns(); /* Popup menu */ - JPopupMenu popupMenu = new JPopupMenu(); - JMenu focusMenu = new JMenu("Show in"); - focusMenu.add(new JMenuItem(showInAllAction)); - focusMenu.addSeparator(); - focusMenu.add(new JMenuItem(timeLineAction)); - focusMenu.add(new JMenuItem(radioLoggerAction)); - popupMenu.add(focusMenu); + popupMenu.add(new JMenuItem(copyAllAction)); + popupMenu.add(new JMenuItem(copyAllMessagesAction)); + popupMenu.add(new JMenuItem(copyAction)); + popupMenu.addSeparator(); + popupMenu.add(new JMenuItem(clearAction)); + logTable.setComponentPopupMenu(popupMenu); /* Fetch log output history */ LogOutputEvent[] history = simulation.getEventCentral().getLogOutputHistory(); if (history.length > 0) {