Skip to content

Commit

Permalink
fix typo, add 'send to BulkSender' to raw text panel
Browse files Browse the repository at this point in the history
  • Loading branch information
prprhyt committed Oct 8, 2019
1 parent b8138a0 commit 66a22df
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/main/java/core/packetproxy/gui/RawTextPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,21 @@ public void actionPerformed(ActionEvent actionEvent) {
});
menu.add(send);

JMenuItem sendRepeater = new JMenuItem("send to repeater");
JMenuItem sendBulkSender = new JMenuItem("send to BulkSender");
sendBulkSender.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
try {
Packet packet = GUIPacket.getInstance().getPacket();
GUIBulkSender.getInstance().add(packet.getOneShotPacket(getData()), packet.getId());
GUIHistory.getInstance().updateRequestOne(GUIHistory.getInstance().getSelectedPacketId());
} catch (Exception e1) {
e1.printStackTrace();
}
}
});
menu.add(sendBulkSender);

JMenuItem sendRepeater = new JMenuItem("send to Resender");
sendRepeater.setMnemonic(KeyEvent.VK_R);
sendRepeater.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R, ActionEvent.META_MASK));
sendRepeater.addActionListener(new ActionListener() {
Expand Down

0 comments on commit 66a22df

Please sign in to comment.