expand static import intention available at the end of the line (IDEA-199910)

This commit is contained in:
Anna.Kozlova
2018-10-04 19:13:47 +02:00
parent 106381f539
commit 3bf18f4db9
2 changed files with 3 additions and 3 deletions
@@ -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,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) {