mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-36374 Remove redundant name parameter from ImportChooser EP
GitOrigin-RevId: 5c6426a1f1f423e3bdb0c4131bc36ae5448755cf
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d4324ef380
commit
8910b97535
+1
-3
@@ -10,7 +10,5 @@ public interface ImportChooser {
|
||||
return ApplicationManager.getApplication().getService(ImportChooser.class);
|
||||
}
|
||||
|
||||
Promise<ImportCandidateHolder> selectImport(List<? extends ImportCandidateHolder> mySources,
|
||||
String myName,
|
||||
boolean myUseQualifiedImport);
|
||||
Promise<ImportCandidateHolder> selectImport(List<? extends ImportCandidateHolder> mySources, boolean myUseQualifiedImport);
|
||||
}
|
||||
|
||||
+1
-1
@@ -91,7 +91,7 @@ public class ImportFromExistingAction implements QuestionAction {
|
||||
|
||||
private void selectSourceAndDo() {
|
||||
ImportChooser.getInstance()
|
||||
.selectImport(mySources, myName, myUseQualifiedImport)
|
||||
.selectImport(mySources, myUseQualifiedImport)
|
||||
.onSuccess(candidate -> {
|
||||
PsiDocumentManager.getInstance(myTarget.getProject()).commitAllDocuments();
|
||||
doWriteAction(candidate);
|
||||
|
||||
@@ -21,9 +21,7 @@ import java.util.List;
|
||||
public class PyImportChooser implements ImportChooser {
|
||||
|
||||
@Override
|
||||
public Promise<ImportCandidateHolder> selectImport(List<? extends ImportCandidateHolder> sources,
|
||||
String name,
|
||||
boolean useQualifiedImport) {
|
||||
public Promise<ImportCandidateHolder> selectImport(List<? extends ImportCandidateHolder> sources, boolean useQualifiedImport) {
|
||||
|
||||
AsyncPromise<ImportCandidateHolder> result = new AsyncPromise<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user