Map<String, Object> hints = new HashMap<String, Object>();
hints.put(WindowManagerImpl.PARENT_COMPONENT, actionContext.getWindowManifestation());
hints.put(WindowManagerImpl.OPTION_TYPE, OptionBox.YES_NO_OPTION);
hints.put(WindowManagerImpl.MESSAGE_TYPE, OptionBox.WARNING_MESSAGE);
hints.put(WindowManagerImpl.MESSAGE_OBJECT, buildWarningPanel(canSave, cannotSave));
String choice = windowManager.showInputDialog(
BUNDLE.getString("SaveWarningTitle"), //title
"", // message - will be overridden by custom object
options, // options
null, // default option
hints); // hints