use of org.zaproxy.zap.view.ContextExportDialog in project zaproxy by zaproxy.
the class ExtensionStdMenus method getPopupContextTreeMenuExport.
private PopupContextTreeMenu getPopupContextTreeMenuExport() {
if (popupContextTreeMenuExport == null) {
popupContextTreeMenuExport = new PopupContextTreeMenu();
popupContextTreeMenuExport.setText(Constant.messages.getString("menu.file.context.export"));
popupContextTreeMenuExport.setIcon(DisplayUtils.getScaledIcon(new ImageIcon(ExtensionStdMenus.class.getResource("/resource/icon/fugue/application-blue-export.png"))));
popupContextTreeMenuExport.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
Context context = Model.getSingleton().getSession().getContext(popupContextTreeMenuExport.getContextId());
ContextExportDialog exportDialog = new ContextExportDialog(View.getSingleton().getMainFrame());
exportDialog.setSelectedContext(context);
exportDialog.setVisible(true);
}
});
}
return popupContextTreeMenuExport;
}
use of org.zaproxy.zap.view.ContextExportDialog in project zaproxy by zaproxy.
the class MenuFileControl method exportContext.
/**
* Prompt the user to export a context
*/
public void exportContext() {
ContextExportDialog exportDialog = new ContextExportDialog(View.getSingleton().getMainFrame());
exportDialog.setVisible(true);
}
Aggregations