Make CommandAdapter.beforeCommandFinished override compatible with 183 platform
This commit is contained in:
@@ -726,7 +726,7 @@ internal abstract class CompositeRefactoringRunner(
|
|||||||
fun invokeOnceOnCommandFinish(action: () -> Unit) {
|
fun invokeOnceOnCommandFinish(action: () -> Unit) {
|
||||||
val commandProcessor = CommandProcessor.getInstance()
|
val commandProcessor = CommandProcessor.getInstance()
|
||||||
val listener = object : CommandAdapter() {
|
val listener = object : CommandAdapter() {
|
||||||
override fun beforeCommandFinished(event: CommandEvent?) {
|
override fun beforeCommandFinished(event: CommandEvent) {
|
||||||
action()
|
action()
|
||||||
commandProcessor.removeCommandListener(this)
|
commandProcessor.removeCommandListener(this)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user