use of org.zaproxy.zap.view.ZapMenuItem in project zaproxy by zaproxy.
the class ExtensionSearch method getMenuSearch.
private ZapMenuItem getMenuSearch() {
if (menuSearch == null) {
menuSearch = new ZapMenuItem("menu.edit.search", KeyStroke.getKeyStroke(KeyEvent.VK_H, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
menuSearch.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
searchPanel.searchFocus();
}
});
}
return menuSearch;
}
use of org.zaproxy.zap.view.ZapMenuItem in project zaproxy by zaproxy.
the class ExtensionSearch method getMenuNext.
private ZapMenuItem getMenuNext() {
if (menuNext == null) {
menuNext = new ZapMenuItem("menu.edit.next", KeyStroke.getKeyStroke(KeyEvent.VK_G, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
menuNext.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
searchPanel.highlightNextResult();
}
});
}
return menuNext;
}
use of org.zaproxy.zap.view.ZapMenuItem in project zaproxy by zaproxy.
the class ExtensionState method getMenuResetSessionState.
// @jve:decl-index=0:} // @jve:decl-index=0:
/**
* This method initializes jMenuItem
*
* @return javax.swing.JMenuItem
*/
private ZapMenuItem getMenuResetSessionState() {
if (menuResetSessionState == null) {
menuResetSessionState = new ZapMenuItem("menu.edit.resetState");
menuResetSessionState.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
if (getView().showConfirmDialog(Constant.messages.getString("state.reset.warning")) == JOptionPane.OK_OPTION) {
resetSessionState();
}
}
});
}
return menuResetSessionState;
}
use of org.zaproxy.zap.view.ZapMenuItem in project zaproxy by zaproxy.
the class ExtensionReport method getMenuItemXmlReport.
private ZapMenuItem getMenuItemXmlReport() {
if (menuItemXmlReport == null) {
menuItemXmlReport = new ZapMenuItem("menu.report.xml.generate");
menuItemXmlReport.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
ReportLastScan report = new ReportLastScan();
report.generateReport(getView(), getModel(), ReportLastScan.ReportType.XML);
}
});
}
return menuItemXmlReport;
}
use of org.zaproxy.zap.view.ZapMenuItem in project zaproxy by zaproxy.
the class ExtensionEncoder2 method getToolsMenuItemEncoder.
private ZapMenuItem getToolsMenuItemEncoder() {
if (toolsMenuEncoder == null) {
toolsMenuEncoder = new ZapMenuItem("enc2.tools.menu.encdec", KeyStroke.getKeyStroke(KeyEvent.VK_E, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(), false));
toolsMenuEncoder.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
showEncodeDecodeDialog(null);
}
});
}
return toolsMenuEncoder;
}
Aggregations