mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make ToggleUseSoftWrapsInPreviewAction DumbAware
(following IDEA-CR-21119)
This commit is contained in:
+2
-1
@@ -21,9 +21,10 @@ import com.intellij.openapi.actionSystem.ToggleAction;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.editor.EditorKind;
|
||||
import com.intellij.openapi.editor.impl.softwrap.SoftWrapAppliancePlaces;
|
||||
import com.intellij.openapi.project.DumbAware;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class ToggleUseSoftWrapsInPreviewAction extends ToggleAction {
|
||||
public class ToggleUseSoftWrapsInPreviewAction extends ToggleAction implements DumbAware {
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
Editor editor = e.getData(CommonDataKeys.EDITOR);
|
||||
|
||||
Reference in New Issue
Block a user