From 5c5267778bc45fec5926c392a1775456d64540b5 Mon Sep 17 00:00:00 2001 From: Nebojsa Vuksic Date: Mon, 28 Jul 2025 15:50:36 +0200 Subject: [PATCH] Rename MyLocationsViewModel to WeatherAppViewModel --- .../plugins/template/toolWindow/MyToolWindowFactory.kt | 4 ++-- .../{MyLocationsViewModel.kt => WeatherAppViewModel.kt} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/{MyLocationsViewModel.kt => WeatherAppViewModel.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 b0fe66f..8e3bfd2 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.MyLocationsViewModel +import org.jetbrains.plugins.template.weatherApp.services.WeatherAppViewModel 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/MyLocationsViewModel.kt b/src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/WeatherAppViewModel.kt similarity index 96% rename from src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/MyLocationsViewModel.kt rename to src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/WeatherAppViewModel.kt index a08e821..56aeea0 100644 --- a/src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/MyLocationsViewModel.kt +++ b/src/main/kotlin/org/jetbrains/plugins/template/weatherApp/services/WeatherAppViewModel.kt @@ -39,7 +39,7 @@ internal interface WeatherViewModelApi { } @Service -internal class MyLocationsViewModel(cs: CoroutineScope) : MyLocationsViewModelApi, WeatherViewModelApi { +internal class WeatherAppViewModel(cs: CoroutineScope) : MyLocationsViewModelApi, WeatherViewModelApi { private val weatherService = service()