mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Workspace Model] LibraryFilesPackagingElementEntityData doesn't use affectedIds
GitOrigin-RevId: 70dad3f8580ddff705999693c7b5aa379633a5ea
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8cfc97b979
commit
56a79294c2
+1
-12
@@ -731,11 +731,7 @@ class ModuleOutputPackagingElementEntity(
|
||||
class LibraryFilesPackagingElementEntityData : WorkspaceEntityData<LibraryFilesPackagingElementEntity>(), SoftLinkable {
|
||||
lateinit var library: LibraryId
|
||||
|
||||
override fun getLinks(): Set<PersistentEntityId<*>> {
|
||||
val tableId = library.tableId
|
||||
if (tableId is LibraryTableId.ModuleLibraryTableId) return setOf(library, tableId.moduleId)
|
||||
return setOf(library)
|
||||
}
|
||||
override fun getLinks(): Set<PersistentEntityId<*>> = setOf(library)
|
||||
|
||||
override fun updateLink(oldLink: PersistentEntityId<*>,
|
||||
newLink: PersistentEntityId<*>,
|
||||
@@ -745,13 +741,6 @@ class LibraryFilesPackagingElementEntityData : WorkspaceEntityData<LibraryFilesP
|
||||
return true
|
||||
}
|
||||
|
||||
val tableId = library.tableId
|
||||
if (tableId is LibraryTableId.ModuleLibraryTableId && tableId.moduleId == oldLink) {
|
||||
val oldLibrary = library
|
||||
this.library = library.copy(tableId = tableId.copy(moduleId = newLink as ModuleId))
|
||||
affectedIds += oldLibrary to this.library
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user