From 6972ccac80cd8ec3e1d74455f2e6204fa45fdd6e Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Wed, 10 Aug 2022 16:00:20 +0200 Subject: [PATCH] [intention-preview] AbstractCreateFileFix: avoid SafeField warning GitOrigin-RevId: 8b883e20d1a0e570ea4b91953df01025feff549d --- .../daemon/quickFix/AbstractCreateFileFix.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/quickFix/AbstractCreateFileFix.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/quickFix/AbstractCreateFileFix.java index 45e71d67aca1..d8cf91fdc453 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/quickFix/AbstractCreateFileFix.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/quickFix/AbstractCreateFileFix.java @@ -4,6 +4,7 @@ package com.intellij.codeInsight.daemon.quickFix; import com.intellij.codeInsight.CodeInsightBundle; import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer; import com.intellij.codeInsight.hint.HintManager; +import com.intellij.codeInsight.intention.preview.IntentionPreviewInfo; import com.intellij.codeInspection.LocalQuickFixAndIntentionActionOnPsiElement; import com.intellij.icons.AllIcons; import com.intellij.openapi.application.ApplicationManager; @@ -73,6 +74,13 @@ public abstract class AbstractCreateFileFix extends LocalQuickFixAndIntentionAct myKey = fixLocaleKey; } + /** + * {@inheritDoc} + * Must be implemented, as default implementation won't work anyway + */ + @Override + abstract public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file); + @Override public boolean isAvailable(@NotNull Project project, @NotNull PsiFile file,