mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
properties: editor == null if quick fix was created from resource bundle editor highlighter IDEA-162117
This commit is contained in:
+1
-1
@@ -187,7 +187,7 @@ public class ShowIntentionActionsHandler implements CodeInsightActionHandler {
|
||||
return true;
|
||||
}
|
||||
|
||||
private static void invokeIntention(@NotNull IntentionAction action, @NotNull Editor editor, @NotNull PsiFile file) {
|
||||
private static void invokeIntention(@NotNull IntentionAction action, @Nullable Editor editor, @NotNull PsiFile file) {
|
||||
PsiElement elementToMakeWritable = action.getElementToMakeWritable(file);
|
||||
if (elementToMakeWritable != null && !FileModificationService.getInstance().preparePsiElementsForWrite(elementToMakeWritable)) {
|
||||
return;
|
||||
|
||||
+1
@@ -133,6 +133,7 @@ public class CleanupInspectionIntention implements IntentionAction, HighPriority
|
||||
@Override
|
||||
public boolean isAvailable(@NotNull final Project project, final Editor editor, final PsiFile file) {
|
||||
return myQuickfixClass != EmptyIntentionAction.class &&
|
||||
editor != null &&
|
||||
!(myToolWrapper instanceof LocalInspectionToolWrapper && ((LocalInspectionToolWrapper)myToolWrapper).isUnfair());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user