use of org.zaproxy.zap.view.ZapMenuItem in project zaproxy by zaproxy.
the class ExtensionSpider method getMenuItemCustomScan.
private ZapMenuItem getMenuItemCustomScan() {
if (menuItemCustomScan == null) {
menuItemCustomScan = new ZapMenuItem("menu.tools.spider", getView().getMenuShortcutKeyStroke(KeyEvent.VK_S, KeyEvent.ALT_DOWN_MASK, false));
menuItemCustomScan.setEnabled(Control.getSingleton().getMode() != Mode.safe);
menuItemCustomScan.addActionListener(e -> showSpiderDialog((Target) null));
}
return menuItemCustomScan;
}
use of org.zaproxy.zap.view.ZapMenuItem in project zaproxy by zaproxy.
the class ExtensionSearch method getMenuItemPrev.
private ZapMenuItem getMenuItemPrev() {
if (menuItemPrev == null) {
menuItemPrev = new ZapMenuItem("menu.edit.search.previous.item", getView().getMenuShortcutKeyStroke(KeyEvent.VK_G, KeyEvent.SHIFT_DOWN_MASK, false));
menuItemPrev.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
searchPanel.highlightPrevResult();
}
});
}
return menuItemPrev;
}
use of org.zaproxy.zap.view.ZapMenuItem in project zaproxy by zaproxy.
the class ExtensionSearch method getMenuItemNext.
private ZapMenuItem getMenuItemNext() {
if (menuItemNext == null) {
menuItemNext = new ZapMenuItem("menu.edit.search.next.item", getView().getMenuShortcutKeyStroke(KeyEvent.VK_G, 0, false));
menuItemNext.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
searchPanel.highlightNextResult();
}
});
}
return menuItemNext;
}
use of org.zaproxy.zap.view.ZapMenuItem in project zaproxy by zaproxy.
the class ExtensionSearch method getMenuItemSearch.
private ZapMenuItem getMenuItemSearch() {
if (menuItemSearch == null) {
menuItemSearch = new ZapMenuItem("menu.edit.search.item", getView().getMenuShortcutKeyStroke(KeyEvent.VK_H, 0, false));
menuItemSearch.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
searchPanel.searchFocus();
}
});
}
return menuItemSearch;
}
use of org.zaproxy.zap.view.ZapMenuItem in project zaproxy by zaproxy.
the class ExtensionBreak method getMenuDrop.
private ZapMenuItem getMenuDrop() {
if (menuDrop == null) {
menuDrop = new ZapMenuItem("menu.tools.brk.drop", getView().getMenuShortcutKeyStroke(KeyEvent.VK_X, 0, false));
menuDrop.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
if (breakpointManagementInterface.isHoldMessage(null)) {
// Menu currently always enabled, but dont do anything unless a
// message is being held
breakpointManagementInterface.drop();
}
}
});
}
return menuDrop;
}
Aggregations