Skip to content

Commit

Permalink
LogListener: re-enable context menu
Browse files Browse the repository at this point in the history
This menu was removed in 3d2c758,
put it back so the log window behaves
like any other editor-like window.
  • Loading branch information
pjonsson committed Jan 8, 2024
1 parent dbfe585 commit b853c44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion java/org/contikios/cooja/plugins/LogListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -538,14 +538,19 @@ 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) {
Expand Down

0 comments on commit b853c44

Please sign in to comment.