mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Restore API compatibility by returning NotebookVisualizationUiUtil to the old package
GitOrigin-RevId: cbe865f65bdd8d18f6c5f3e4d97caf9b1e22d6b0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fd9c4acedd
commit
ece5669bb8
@@ -0,0 +1,16 @@
|
||||
// Please, don't add new functions to this file.
|
||||
package org.jetbrains.plugins.notebooks.editor
|
||||
|
||||
import com.intellij.openapi.editor.Editor
|
||||
import com.intellij.openapi.editor.event.DocumentListener
|
||||
import com.intellij.openapi.editor.impl.EditorImpl
|
||||
import org.jetbrains.annotations.ApiStatus.ScheduledForRemoval
|
||||
|
||||
@Deprecated("Just inline this simple function")
|
||||
@ScheduledForRemoval
|
||||
fun Editor.addEditorDocumentListener(listener: DocumentListener) {
|
||||
require(this is EditorImpl)
|
||||
if (!isDisposed) {
|
||||
document.addDocumentListener(listener, disposable)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user