protected void doAction(ActionEvent event)
{
MainFrame mainFrame = GlobalController.SINGLETON.getMainFrame();
boolean isGuideSelected = GlobalModel.SINGLETON.getSelectedGuide() != null;
ExportGuidesDialog dialog = new ExportGuidesDialog(mainFrame);
dialog.setAllowSelectedGuide(isGuideSelected);
dialog.open();
if (!dialog.hasBeenCanceled())
{
String filename = dialog.getFilename();
boolean extended = dialog.isExtendedMode();
if (dialog.isSelectedGuideMode())
{
processExportSelected(filename, extended);
} else
{
processExportAll(filename, extended);