mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DuplicateStringLiteralInspection: "Navigate to occurrences" doesn't need write action
This commit is contained in:
+6
-1
@@ -424,10 +424,15 @@ public class DuplicateStringLiteralInspection extends BaseLocalInspectionTool {
|
||||
}
|
||||
|
||||
private class NavigateToOccurrencesFix extends LocalQuickFixOnPsiElement {
|
||||
public NavigateToOccurrencesFix(PsiLiteralExpression representative) {
|
||||
NavigateToOccurrencesFix(PsiLiteralExpression representative) {
|
||||
super(representative);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean startInWriteAction() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invoke(@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) {
|
||||
if (!(startElement instanceof PsiLiteralExpression)) return;
|
||||
|
||||
Reference in New Issue
Block a user