summaryrefslogtreecommitdiff
path: root/plugins/kotlin/performance-tests/test/org/jetbrains/kotlin/idea/perf/common/ProjectAction.kt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kotlin/performance-tests/test/org/jetbrains/kotlin/idea/perf/common/ProjectAction.kt')
-rw-r--r--plugins/kotlin/performance-tests/test/org/jetbrains/kotlin/idea/perf/common/ProjectAction.kt15
1 files changed, 11 insertions, 4 deletions
diff --git a/plugins/kotlin/performance-tests/test/org/jetbrains/kotlin/idea/perf/common/ProjectAction.kt b/plugins/kotlin/performance-tests/test/org/jetbrains/kotlin/idea/perf/common/ProjectAction.kt
index 4d9d12f71b14..22e096388498 100644
--- a/plugins/kotlin/performance-tests/test/org/jetbrains/kotlin/idea/perf/common/ProjectAction.kt
+++ b/plugins/kotlin/performance-tests/test/org/jetbrains/kotlin/idea/perf/common/ProjectAction.kt
@@ -1,14 +1,21 @@
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.perf.common
-sealed class ProjectAction
+sealed class ProjectAction {
+ abstract val id: String
+ abstract val filePath: String
+}
-data class HighlightFile(val filePath: String) : ProjectAction()
+data class HighlightFile(override val filePath: String) : ProjectAction() {
+ override val id: String = "highlighting"
+}
data class TypeAndAutocompleteInFile(
- val filePath: String,
+ override val filePath: String,
val typeAfter: String,
val textToType: String,
val expectedLookupElements: List<String>,
val note: String? = null
-) : ProjectAction() \ No newline at end of file
+) : ProjectAction() {
+ override val id: String = "completion"
+} \ No newline at end of file