mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
expand static import intention available at the end of the line (IDEA-199910)
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.intention.impl;
|
||||
|
||||
import com.intellij.codeInsight.intention.PsiElementBaseIntentionAction;
|
||||
import com.intellij.codeInsight.intention.BaseElementAtCaretIntentionAction;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.command.WriteCommandAction;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
@@ -32,7 +32,7 @@ import java.util.List;
|
||||
|
||||
import static com.intellij.psi.util.ImportsUtil.*;
|
||||
|
||||
public class ExpandStaticImportAction extends PsiElementBaseIntentionAction {
|
||||
public class ExpandStaticImportAction extends BaseElementAtCaretIntentionAction {
|
||||
private static final String REPLACE_THIS_OCCURRENCE = "Replace this occurrence and keep the import";
|
||||
private static final String REPLACE_ALL_AND_DELETE_IMPORT = "Replace all and delete the import";
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Replace static import with qualified access to Arrays" "true"
|
||||
import static java.util.Arrays.so<caret>rt;
|
||||
import static java.util.Arrays.sort<caret>;
|
||||
|
||||
class Test {
|
||||
public void sendMessage(String... destinationAddressNames) {
|
||||
|
||||
Reference in New Issue
Block a user