File tree Expand file tree Collapse file tree
kotlin/com/github/xepozz/testo/tests/actions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package com.github.xepozz.testo.tests.actions
2+
3+ import com.github.xepozz.testo.TestoIcons
4+ import com.intellij.execution.testframework.TestConsoleProperties
5+ import com.intellij.execution.testframework.TestFrameworkRunningModel
6+ import com.intellij.execution.testframework.ToggleModelAction
7+ import com.intellij.execution.testframework.ToggleModelActionProvider
8+ import com.intellij.util.config.BooleanProperty
9+
10+ class TestoTestActionProvider : ToggleModelActionProvider {
11+ override fun createToggleModelAction (properties : TestConsoleProperties ? ): ToggleModelAction ? {
12+ // TODO: Implement this method
13+ return TestoToggleModelAction (properties)
14+ }
15+ }
16+
17+ class TestoToggleModelAction (properties : TestConsoleProperties ? ) : ToggleModelAction(
18+ " Testo Button" ,
19+ " It does something" ,
20+ TestoIcons .TESTO ,
21+ properties,
22+ BooleanProperty ("Something ", false)
23+ ) {
24+ var myModel: TestFrameworkRunningModel ? = null
25+
26+ override fun setModel (model : TestFrameworkRunningModel ? ) {
27+ this .myModel = model
28+ }
29+
30+ override fun isEnabled (): Boolean = true
31+ }
Original file line number Diff line number Diff line change 7171 <lang .inspectionSuppressor
7272 language =" PHP"
7373 implementationClass =" com.github.xepozz.testo.tests.inspections.TestoInspectionSuppressor" />
74+ <testActionProvider order =" last"
75+ implementation =" com.github.xepozz.testo.tests.actions.TestoTestActionProvider" />
7476 </extensions >
7577
7678 <extensions defaultExtensionNs =" com.jetbrains.php" >
You can’t perform that action at this time.
0 commit comments