Bug 59956 [R21PRES] perspective switcher
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java
String message;
            String productName = null;
            AboutInfo about = IDEWorkbenchPlugin.getDefault().getPrimaryInfo();
            if (about != null) {
                productName = about.getProductName();
            }
            if (productName == null) {
                message = IDEWorkbenchMessages
                        .getString("PromptOnExitDialog.message0"); 
            } else {
                message = IDEWorkbenchMessages
                        .format(
                                "PromptOnExitDialog.message1", new Object[] { productName }); 
            }
            MessageDialogWithToggle dlg = MessageDialogWithToggle
                    .openOkCancelConfirm(
                            windowConfigurer.getWindow().getShell(),
                            IDEWorkbenchMessages
                                    .getString("PromptOnExitDialog.shellTitle"), 
                            message,
                            IDEWorkbenchMessages
                                    .getString("PromptOnExitDialog.choice"), 
                            false,
                            null,
                            null);
            if (dlg.getReturnCode() != IDialogConstants.OK_ID) {
                return false;
            }
            if (dlg.getToggleState()) {
                store.setValue(IDEInternalPreferences.EXIT_PROMPT_ON_CLOSE_LAST_WINDOW, false);