make ToggleUseSoftWrapsInPreviewAction DumbAware

(following IDEA-CR-21119)
This commit is contained in:
Dmitry Batrak
2017-07-07 18:10:18 +03:00
parent 2bc0c8de43
commit 4402e56003
@@ -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);