generated from JetBrains/intellij-platform-plugin-template
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(devins-language): add DevInsRunListener for handling run events #…
…100 Add DevInsRunListener to handle run finish events in DevInsProgramRunner and DevInsRunConfigurationProfileState. The `DevInsRunListener` interface is added to handle run finish events in `DevInsProgramRunner` and `DevInsRunConfigurationProfileState`. This listener will allow for better control and handling of events related to program execution.
- Loading branch information
Showing
3 changed files
with
37 additions
and
10 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
17 changes: 17 additions & 0 deletions
17
exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/status/DevInsRunListener.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,17 @@ | ||
package cc.unitmesh.devti.language.status | ||
|
||
import com.intellij.execution.process.ProcessEvent | ||
import com.intellij.util.messages.Topic | ||
import java.util.* | ||
|
||
@FunctionalInterface | ||
interface DevInsRunListener : EventListener { | ||
fun runFinish(string: String, event: ProcessEvent) | ||
|
||
companion object { | ||
@Topic.AppLevel | ||
val TOPIC: Topic<DevInsRunListener> = Topic( | ||
DevInsRunListener::class.java, Topic.BroadcastDirection.TO_DIRECT_CHILDREN | ||
) | ||
} | ||
} |