From 5fea5ad993a76c86bedfb5f0460db30fccd13809 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Wed, 20 Mar 2024 14:57:41 +0100 Subject: [PATCH] IJPL-846 convert TextEditorCustomizer to kotlin GitOrigin-RevId: f4e5707203162178ca2bd3f85a4ec132cec287fc --- .../impl/text/TextEditorCustomizer.kt | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/text/TextEditorCustomizer.kt b/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/text/TextEditorCustomizer.kt index fdc347be32c5..e64ceec9c6fd 100644 --- a/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/text/TextEditorCustomizer.kt +++ b/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/text/TextEditorCustomizer.kt @@ -1,15 +1,18 @@ -// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -package com.intellij.openapi.fileEditor.impl.text; +// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +package com.intellij.openapi.fileEditor.impl.text -import com.intellij.openapi.extensions.ExtensionPointName; -import com.intellij.openapi.fileEditor.TextEditor; -import org.jetbrains.annotations.NotNull; - -public interface TextEditorCustomizer { - ExtensionPointName EP = new ExtensionPointName<>("com.intellij.textEditorCustomizer"); +import com.intellij.openapi.extensions.ExtensionPointName +import com.intellij.openapi.fileEditor.TextEditor +import org.jetbrains.annotations.ApiStatus +@ApiStatus.Internal +interface TextEditorCustomizer { /** * Use to customize editor after it was created */ - void customize(@NotNull TextEditor textEditor); + fun customize(textEditor: TextEditor) + + companion object { + val EP: ExtensionPointName = ExtensionPointName("com.intellij.textEditorCustomizer") + } } \ No newline at end of file