Search in sources :

Example 1 with ZapMenuItem

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;
}
Also used : ZapMenuItem(org.zaproxy.zap.view.ZapMenuItem)

Example 2 with ZapMenuItem

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;
}
Also used : ZapMenuItem(org.zaproxy.zap.view.ZapMenuItem)

Example 3 with ZapMenuItem

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;
}
Also used : ZapMenuItem(org.zaproxy.zap.view.ZapMenuItem)

Example 4 with ZapMenuItem

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;
}
Also used : ZapMenuItem(org.zaproxy.zap.view.ZapMenuItem)

Example 5 with ZapMenuItem

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;
}
Also used : ZapMenuItem(org.zaproxy.zap.view.ZapMenuItem)

Aggregations

ZapMenuItem (org.zaproxy.zap.view.ZapMenuItem)42 ActionEvent (java.awt.event.ActionEvent)14 Component (java.awt.Component)3 ActionListener (java.awt.event.ActionListener)2 JMenu (javax.swing.JMenu)2 JMenuItem (javax.swing.JMenuItem)2 Target (org.zaproxy.zap.model.Target)2 File (java.io.File)1 IOException (java.io.IOException)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 FileAlreadyExistsException (java.nio.file.FileAlreadyExistsException)1 JFileChooser (javax.swing.JFileChooser)1 JList (javax.swing.JList)1 JTree (javax.swing.JTree)1 FileFilter (javax.swing.filechooser.FileFilter)1 TreePath (javax.swing.tree.TreePath)1 ConfigurationException (org.apache.commons.configuration.ConfigurationException)1 HistoryReference (org.parosproxy.paros.model.HistoryReference)1 SiteNode (org.parosproxy.paros.model.SiteNode)1 HttpMessage (org.parosproxy.paros.network.HttpMessage)1