} else {
MyListSelectionDialog dlg = new MyListSelectionDialog(
shellProvider.getShell(),
modelsToSave,
new ArrayContentProvider(),
new WorkbenchPartLabelProvider(),
stillOpenElsewhere ? WorkbenchMessages.EditorManager_saveResourcesOptionallyMessage
: WorkbenchMessages.EditorManager_saveResourcesMessage,
canCancel, stillOpenElsewhere);
dlg.setInitialSelections(modelsToSave.toArray());
dlg.setTitle(EditorManager.SAVE_RESOURCES_TITLE);