I am working on an extension that needs to handle multiple selected messages in the histor pane. As a start I am modifying the simpleexample extension to test a couple of features. One thing that puzzles me is that when one HTTP message is selected, the rightclick popup menu shows an active entry for simpleexample, but when more than one is selected then the menu item is disabled.
As a quick hack, I added a setEnabled() method to RightClickMsgMenu to always call super.setEnabled(true), and added an ActionListener to the same object to call my code. This seems to work (for now) and I can access the selected HTTP messages.
However, I think that there is probably a good reason why Zap prevents calling an action method when multiple messages are selected? If so, is there a better way to handle this issue?
Regards,
Eddy.