generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML4SE-160] Divided configs into 2 types
- Loading branch information
mikrise2
committed
Oct 15, 2023
1 parent
389f80e
commit cc4fe7c
Showing
17 changed files
with
81 additions
and
46 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
ijPlugin/src/main/kotlin/org/jetbrains/research/tasktracker/config/BaseProjectConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.jetbrains.research.tasktracker.config | ||
|
||
import com.intellij.openapi.project.Project | ||
import org.jetbrains.research.tasktracker.handler.BaseProjectHandler | ||
|
||
interface BaseProjectConfig : BaseConfig { | ||
fun buildHandler(project: Project): BaseProjectHandler? | ||
} |
9 changes: 5 additions & 4 deletions
9
ijPlugin/src/main/kotlin/org/jetbrains/research/tasktracker/config/ide/MainIdeConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
.../main/kotlin/org/jetbrains/research/tasktracker/config/tracking/ActivityTrackingConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
ijPlugin/src/main/kotlin/org/jetbrains/research/tasktracker/handler/BaseHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
package org.jetbrains.research.tasktracker.handler | ||
|
||
import com.intellij.openapi.project.Project | ||
import org.jetbrains.research.tasktracker.config.BaseConfig | ||
|
||
interface BaseHandler { | ||
val config: BaseConfig | ||
|
||
fun setup(project: Project) = run { } | ||
fun setup() = run { } | ||
|
||
fun destroy() = run { } | ||
} |
10 changes: 10 additions & 0 deletions
10
ijPlugin/src/main/kotlin/org/jetbrains/research/tasktracker/handler/BaseProjectHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.jetbrains.research.tasktracker.handler | ||
|
||
import com.intellij.openapi.project.Project | ||
import org.jetbrains.research.tasktracker.config.BaseConfig | ||
|
||
interface BaseProjectHandler : BaseHandler { | ||
override val config: BaseConfig | ||
|
||
val project: Project | ||
} |
3 changes: 1 addition & 2 deletions
3
.../src/main/kotlin/org/jetbrains/research/tasktracker/handler/content/TaskContentHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
package org.jetbrains.research.tasktracker.handler.content | ||
|
||
import com.intellij.openapi.project.Project | ||
import org.jetbrains.research.tasktracker.config.content.TaskContentConfig | ||
import org.jetbrains.research.tasktracker.handler.BaseHandler | ||
import org.jetbrains.research.tasktracker.ui.main.panel.storage.MainPanelStorage | ||
|
||
// TODO: add hierarchy for different types of tasks | ||
class TaskContentHandler(override val config: TaskContentConfig) : BaseHandler { | ||
|
||
override fun setup(project: Project) { | ||
override fun setup() { | ||
MainPanelStorage.taskIdTask = config.tasks.associateBy { it.id }.toMutableMap() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters