From e46081ec3178a2eb928742e101f1e6f8dec102ad Mon Sep 17 00:00:00 2001 From: Daniil Ovchinnikov Date: Wed, 9 Apr 2025 12:38:39 +0200 Subject: [PATCH] clean up `TypedAction` GitOrigin-RevId: 427af5fdd018e4979d1270fc279217d6f56bc885 --- .../openapi/editor/actionSystem/TypedAction.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/platform/platform-api/src/com/intellij/openapi/editor/actionSystem/TypedAction.java b/platform/platform-api/src/com/intellij/openapi/editor/actionSystem/TypedAction.java index 06f3c6eaa06f..ec8f5fb39cb6 100644 --- a/platform/platform-api/src/com/intellij/openapi/editor/actionSystem/TypedAction.java +++ b/platform/platform-api/src/com/intellij/openapi/editor/actionSystem/TypedAction.java @@ -6,7 +6,10 @@ import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.command.CommandProcessor; import com.intellij.openapi.diagnostic.Logger; -import com.intellij.openapi.editor.*; +import com.intellij.openapi.editor.Editor; +import com.intellij.openapi.editor.EditorBundle; +import com.intellij.openapi.editor.EditorModificationUtil; +import com.intellij.openapi.editor.ReadOnlyFragmentModificationException; import com.intellij.openapi.extensions.ExtensionPointName; import com.intellij.openapi.extensions.PluginDescriptor; import com.intellij.openapi.progress.ProcessCanceledException; @@ -61,8 +64,8 @@ public abstract class TypedAction { ) { var handler = bean.handler; if (handler != null) { - return handler; - } + return handler; + } try { var aClass = ApplicationManager.getApplication().loadClass(bean.implementationClass, pluginDescriptor); @@ -172,7 +175,6 @@ public abstract class TypedAction { * * @param handler the handler to set. * @return the previously registered handler. - * * @see #getRawHandler() * @see #getHandler() * @see #setupHandler(TypedActionHandler)