EditGuideDialog dialog = new EditGuideDialog(mainFrame, actAvailable, pubLimit, pubLimitReached);
dialog.open(set, guide);
if (!dialog.hasBeenCanceled())
{
performUpdates(guide, dialog, set.indexOf(guide));
boolean newPublishingEnabled = guide.isPublishingEnabled();
if (newPublishingEnabled && !oldPublishingEnabled)
{
GlobalController.SINGLETON.showNewPublishingDialog();