Add option to clear text from the packetlogger

Signed-off-by: Eduardo Alonso <edu@error404software.com>
This commit is contained in:
Eduardo Alonso 2018-12-31 13:20:40 +01:00
parent cf4aa16148
commit 0afbaac944
2 changed files with 8 additions and 0 deletions

View File

@ -227,4 +227,8 @@ public class UiLoggerController implements Initializable {
stage.setAlwaysOnTop(!alwaysOnTop); stage.setAlwaysOnTop(!alwaysOnTop);
alwaysOnTop = !alwaysOnTop; alwaysOnTop = !alwaysOnTop;
} }
public void clearText(ActionEvent actionEvent) {
area.clear();
}
} }

View File

@ -34,6 +34,10 @@
</accelerator></CheckMenuItem> </accelerator></CheckMenuItem>
<CheckMenuItem fx:id="chkSkipBigPackets" mnemonicParsing="false" onAction="#toggleSkipPackets" selected="true" text="Skip big packets" /> <CheckMenuItem fx:id="chkSkipBigPackets" mnemonicParsing="false" onAction="#toggleSkipPackets" selected="true" text="Skip big packets" />
<CheckMenuItem fx:id="chkAlwaysOnTop" mnemonicParsing="false" onAction="#toggleAlwaysOnTop" text="Always on top" /> <CheckMenuItem fx:id="chkAlwaysOnTop" mnemonicParsing="false" onAction="#toggleAlwaysOnTop" text="Always on top" />
<CheckMenuItem fx:id="chkClearText" mnemonicParsing="false" onAction="#clearText" text="Clear text">
<accelerator>
<KeyCodeCombination alt="UP" code="E" control="DOWN" meta="UP" shift="UP" shortcut="UP" />
</accelerator></CheckMenuItem>
</Menu> </Menu>
</MenuBar> </MenuBar>
</top> </top>