mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[ExternalSystem] cleanup: add setter for the linkedProjectId property
GitOrigin-RevId: e4ca3302886b8668a31a1cfdbce3137c9ea76e94
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5408f9d2ce
commit
425c84ef60
@@ -30,6 +30,7 @@ a:com.intellij.openapi.externalSystem.ExternalSystemModulePropertyManager
|
||||
- a:setExternalId(com.intellij.openapi.externalSystem.model.ProjectSystemId):V
|
||||
- a:setExternalModuleType(java.lang.String):V
|
||||
- a:setExternalOptions(com.intellij.openapi.externalSystem.model.ProjectSystemId,com.intellij.openapi.externalSystem.model.project.ModuleData,com.intellij.openapi.externalSystem.model.project.ProjectData):V
|
||||
- a:setLinkedProjectId(java.lang.String):V
|
||||
- a:setLinkedProjectPath(java.lang.String):V
|
||||
- a:setMavenized(Z):V
|
||||
- a:setRootProjectPath(java.lang.String):V
|
||||
|
||||
+1
@@ -26,6 +26,7 @@ abstract class ExternalSystemModulePropertyManager {
|
||||
abstract fun unlinkExternalOptions()
|
||||
abstract fun setExternalOptions(id: ProjectSystemId, moduleData: ModuleData, projectData: ProjectData?)
|
||||
abstract fun setExternalId(id: ProjectSystemId)
|
||||
abstract fun setLinkedProjectId(id: String?)
|
||||
abstract fun setLinkedProjectPath(path: String?)
|
||||
abstract fun setRootProjectPath(path: String?)
|
||||
abstract fun setExternalModuleType(type: String?)
|
||||
|
||||
+7
-1
@@ -165,6 +165,12 @@ class ExternalSystemModulePropertyManagerBridge(private val module: Module) : Ex
|
||||
updateSource()
|
||||
}
|
||||
|
||||
override fun setLinkedProjectId(id: String?) {
|
||||
editEntity {
|
||||
linkedProjectId = id
|
||||
}
|
||||
}
|
||||
|
||||
override fun setLinkedProjectPath(path: String?) {
|
||||
editEntity {
|
||||
linkedProjectPath = path
|
||||
@@ -188,6 +194,6 @@ class ExternalSystemModulePropertyManagerBridge(private val module: Module) : Ex
|
||||
|
||||
private fun getModuleDiff(): MutableEntityStorage? {
|
||||
val modelsProvider = module.getUserData(IdeModifiableModelsProviderImpl.MODIFIABLE_MODELS_PROVIDER_KEY)
|
||||
return if (modelsProvider != null) modelsProvider.actualStorageBuilder else (module as ModuleBridge).diff as? MutableEntityStorage
|
||||
return modelsProvider?.actualStorageBuilder ?: (module as ModuleBridge).diff
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user