Restore API compatibility by returning NotebookVisualizationUiUtil to the old package

GitOrigin-RevId: cbe865f65bdd8d18f6c5f3e4d97caf9b1e22d6b0
This commit is contained in:
Vladimir Lagunov
2022-01-28 16:30:13 +07:00
committed by intellij-monorepo-bot
parent fd9c4acedd
commit ece5669bb8

View File

@@ -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)
}
}