From 4399e4fb1928f522d2bfa692964a72f76233bf62 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Sat, 12 Jan 2019 09:53:53 +0100 Subject: [PATCH] cleanup (import) --- .../src/ProjectSaveSessionProducerManager.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/platform/configuration-store-impl/src/ProjectSaveSessionProducerManager.kt b/platform/configuration-store-impl/src/ProjectSaveSessionProducerManager.kt index 6e565ba1320f..8fc71099f091 100644 --- a/platform/configuration-store-impl/src/ProjectSaveSessionProducerManager.kt +++ b/platform/configuration-store-impl/src/ProjectSaveSessionProducerManager.kt @@ -7,7 +7,7 @@ import com.intellij.openapi.application.runReadAction import com.intellij.openapi.components.impl.stores.IComponentStore import com.intellij.openapi.components.impl.stores.SaveSessionAndFile import com.intellij.openapi.project.Project -import com.intellij.openapi.project.impl.ProjectManagerImpl +import com.intellij.openapi.project.impl.ProjectManagerImpl.UnableToSaveProjectNotification import com.intellij.openapi.vfs.ReadonlyStatusHandler import com.intellij.openapi.vfs.VirtualFile import com.intellij.util.containers.mapSmart @@ -54,17 +54,16 @@ internal class ProjectSaveSessionProducerManager(private val project: Project) : private fun dropUnableToSaveProjectNotification(project: Project, readOnlyFiles: List) { val notifications = getUnableToSaveNotifications() if (notifications.isEmpty()) { - Notifications.Bus.notify( - ProjectManagerImpl.UnableToSaveProjectNotification(project, readOnlyFiles), project) + Notifications.Bus.notify(UnableToSaveProjectNotification(project, readOnlyFiles), project) } else { notifications[0].setFiles(readOnlyFiles) } } - private fun getUnableToSaveNotifications(): Array { + private fun getUnableToSaveNotifications(): Array { return NotificationsManager.getNotificationsManager() - .getNotificationsOfType(ProjectManagerImpl.UnableToSaveProjectNotification::class.java, project) + .getNotificationsOfType(UnableToSaveProjectNotification::class.java, project) } }