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.
- Loading branch information
mikrise2
committed
Nov 9, 2023
1 parent
7253f6a
commit 682e66f
Showing
6 changed files
with
46 additions
and
28 deletions.
There are no files selected for viewing
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
31 changes: 31 additions & 0 deletions
31
...src/main/kotlin/org/jetbrains/research/tasktracker/config/scenario/models/ScenarioStep.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,31 @@ | ||
package org.jetbrains.research.tasktracker.config.scenario.models | ||
|
||
import com.intellij.openapi.project.Project | ||
import kotlinx.serialization.Serializable | ||
import kotlinx.serialization.Transient | ||
import org.jetbrains.research.tasktracker.config.BaseConfig | ||
import org.jetbrains.research.tasktracker.config.ide.MainIdeConfig | ||
import org.jetbrains.research.tasktracker.handler.BaseProjectHandler | ||
|
||
@Serializable | ||
data class ScenarioStep( | ||
private val ideConfig: MainIdeConfig?, | ||
val units: List<BaseConfig>, | ||
val mode: ScenarioStepMode = ScenarioStepMode.ORDERED | ||
) { | ||
@Transient | ||
private var mainIdeHandler: BaseProjectHandler? = null | ||
|
||
fun prepareSettings(project: Project) { | ||
mainIdeHandler = ideConfig?.buildHandler(project) | ||
mainIdeHandler?.setup() | ||
} | ||
|
||
fun run() { | ||
TODO() | ||
} | ||
|
||
// TODO check if there are any config of specified type in units. | ||
@Suppress("FunctionOnlyReturningConstant") | ||
fun isValid() = true | ||
} |
6 changes: 6 additions & 0 deletions
6
...main/kotlin/org/jetbrains/research/tasktracker/config/scenario/models/ScenarioStepMode.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,6 @@ | ||
package org.jetbrains.research.tasktracker.config.scenario.models | ||
|
||
enum class ScenarioStepMode { | ||
ORDERED, | ||
SHUFFLED | ||
} |
4 changes: 2 additions & 2 deletions
4
...in/src/main/kotlin/org/jetbrains/research/tasktracker/handler/scenario/ScenarioHandler.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