mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Java] ModifierFix: fix preview when the modifier is not from the current file
GitOrigin-RevId: 25f5da768acb943fe10c984baa0b15904a78a9ad
This commit is contained in:
committed by
intellij-monorepo-bot
parent
22ac960eca
commit
46522509f0
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2018 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.
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.codeInsight.daemon.impl.quickfix;
|
||||
|
||||
import com.intellij.codeInsight.FileModificationService;
|
||||
@@ -171,6 +171,11 @@ public class ModifierFix extends LocalQuickFixAndIntentionActionOnPsiElement imp
|
||||
return IntentionPreviewInfo.DIFF;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable PsiElement getElementToMakeWritable(@NotNull PsiFile currentFile) {
|
||||
return getStartElement().getContainingFile();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invoke(@NotNull Project project,
|
||||
@NotNull PsiFile file,
|
||||
|
||||
Reference in New Issue
Block a user