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 7, 2024
1 parent be76fec commit e99b08b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions java/org/contikios/cooja/plugins/LogListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e99b08b

Please sign in to comment.