Skip to content

Commit

Permalink
test1
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrise2 committed Jan 4, 2024
1 parent d0fdd85 commit 3680125
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
16 changes: 8 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ allprojects {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
}

withType<Detekt>().configureEach {
jvmTarget = jdkVersion
}
// withType<Detekt>().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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ij-plugin/src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<toolWindow doNotActivateOnStart="true"
factoryClass="org.jetbrains.research.tasktracker.ui.main.panel.MainPluginPanelFactory"
id="TaskTracker" anchor="right"/>
<postStartupActivity implementation="org.jetbrains.research.tasktracker.activities.InitActivity"/>
<!-- <postStartupActivity implementation="org.jetbrains.research.tasktracker.activities.InitActivity"/>-->
<notificationGroup id="tasktracker" displayType="BALLOON"/>
</extensions>

Expand Down

0 comments on commit 3680125

Please sign in to comment.