From 3680125e01373df46a0186be944b0090809bf271 Mon Sep 17 00:00:00 2001 From: mikrise2 Date: Thu, 4 Jan 2024 14:11:49 +0100 Subject: [PATCH] test1 --- build.gradle.kts | 16 ++++++++-------- .../research/tasktracker/TaskTrackerPlugin.kt | 2 +- .../ui/main/panel/MainPluginPanelFactory.kt | 2 ++ ij-plugin/src/main/resources/META-INF/plugin.xml | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index d8ae8b2f..4a278340 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -46,20 +46,20 @@ allprojects { kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString() } - withType().configureEach { - jvmTarget = jdkVersion - } +// withType().configureEach { +// jvmTarget = jdkVersion +// } test { useJUnit() } } - detekt { - buildUponDefaultConfig = true - allRules = false - config = files("$rootDir/config/detekt.yml") - } +// detekt { +// buildUponDefaultConfig = true +// allRules = false +// config = files("$rootDir/config/detekt.yml") +// } } tasks { diff --git a/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/TaskTrackerPlugin.kt b/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/TaskTrackerPlugin.kt index dc62d48c..5cbfb0d8 100644 --- a/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/TaskTrackerPlugin.kt +++ b/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/TaskTrackerPlugin.kt @@ -18,7 +18,7 @@ object TaskTrackerPlugin { private val logger: Logger = Logger.getInstance(javaClass) // TODO: add a settings panel to update properties and the main config - lateinit var mainConfig: MainTaskTrackerConfig + var mainConfig: MainTaskTrackerConfig = MainTaskTrackerConfig(loadProps().toPluginProperties()) lateinit var initializationHandler: InitializationHandler fun initPlugin() { diff --git a/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/MainPluginPanelFactory.kt b/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/MainPluginPanelFactory.kt index e781c5a0..1fc8e1a2 100644 --- a/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/MainPluginPanelFactory.kt +++ b/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/MainPluginPanelFactory.kt @@ -17,6 +17,7 @@ import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.launch import kotlinx.serialization.json.Json import org.jetbrains.concurrency.Promise +import org.jetbrains.research.tasktracker.TaskTrackerPlugin import org.jetbrains.research.tasktracker.config.content.task.base.Task import org.jetbrains.research.tasktracker.tracking.BaseTracker import org.jetbrains.research.tasktracker.tracking.TaskFileHandler @@ -56,6 +57,7 @@ class MainPluginPanelFactory : ToolWindowFactory { lateinit var project: Project override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) { + TaskTrackerPlugin.initPlugin() this.project = project mainWindow = project.getService(MainWindowService::class.java).mainWindow mainWindow.jComponent.size = JBUI.size(toolWindow.component.width, toolWindow.component.height) diff --git a/ij-plugin/src/main/resources/META-INF/plugin.xml b/ij-plugin/src/main/resources/META-INF/plugin.xml index 1908bb5c..b460c701 100644 --- a/ij-plugin/src/main/resources/META-INF/plugin.xml +++ b/ij-plugin/src/main/resources/META-INF/plugin.xml @@ -12,7 +12,7 @@ - +