{
final GuidesSet cgs = GlobalModel.SINGLETON.getGuidesSet();
StandardGuide[] guides = GuidesUtils.filterGuides(cgs.getStandardGuides(null), guidesToDelete);
final MainFrame mainFrame = GlobalController.SINGLETON.getMainFrame();
DeleteGuideDialog dialog = new DeleteGuideDialog(mainFrame, guidesToDelete.length > 1);
dialog.setReassignGuides(guides);
dialog.open();
boolean delete = false;
if (!dialog.hasBeenCanceled())
{
if (dialog.isReassigning())
{
final StandardGuide destGuide = dialog.getSelectedReassignGuide();
GlobalController.SINGLETON.mergeGuides(guidesToDelete, destGuide);
delete = false;
} else
{