From 4a5b2f32f6f9994680db66d080927cc158499f7c Mon Sep 17 00:00:00 2001 From: Nebojsa Vuksic Date: Mon, 28 Jul 2025 16:19:57 +0200 Subject: [PATCH] Rename MyLocationsViewModel to WeatherAppViewModel --- .../plugins/template/toolWindow/MyToolWindowFactory.kt | 4 ++-- .../{WeatherAppViewModel.kt => MyLocationsViewModel.kt} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/{WeatherAppViewModel.kt => MyLocationsViewModel.kt} (96%) diff --git a/src/main/kotlin/org/jetbrains/plugins/template/toolWindow/MyToolWindowFactory.kt b/src/main/kotlin/org/jetbrains/plugins/template/toolWindow/MyToolWindowFactory.kt index 8e3bfd2..b0fe66f 100644 --- a/src/main/kotlin/org/jetbrains/plugins/template/toolWindow/MyToolWindowFactory.kt +++ b/src/main/kotlin/org/jetbrains/plugins/template/toolWindow/MyToolWindowFactory.kt @@ -8,14 +8,14 @@ import com.intellij.openapi.wm.ToolWindowFactory import org.jetbrains.jewel.bridge.addComposeTab import org.jetbrains.plugins.template.ui.ChatAppSample import org.jetbrains.plugins.template.weatherApp.services.LocationsProvider -import org.jetbrains.plugins.template.weatherApp.services.WeatherAppViewModel +import org.jetbrains.plugins.template.weatherApp.services.MyLocationsViewModel import org.jetbrains.plugins.template.weatherApp.ui.WeatherAppSample class MyToolWindowFactory : ToolWindowFactory, DumbAware { override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) { toolWindow.addComposeTab("Weather App") { - val viewModel = service() + val viewModel = service() val locationProviderApi = service() WeatherAppSample( viewModel, diff --git a/src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/WeatherAppViewModel.kt b/src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/MyLocationsViewModel.kt similarity index 96% rename from src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/WeatherAppViewModel.kt rename to src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/MyLocationsViewModel.kt index 56aeea0..a08e821 100644 --- a/src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/WeatherAppViewModel.kt +++ b/src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/MyLocationsViewModel.kt @@ -39,7 +39,7 @@ internal interface WeatherViewModelApi { } @Service -internal class WeatherAppViewModel(cs: CoroutineScope) : MyLocationsViewModelApi, WeatherViewModelApi { +internal class MyLocationsViewModel(cs: CoroutineScope) : MyLocationsViewModelApi, WeatherViewModelApi { private val weatherService = service()