IJPL-207762 cleanup AutoPopupController API

GitOrigin-RevId: 684fdec3020d6586e2e137ffe6f275640875147b
This commit is contained in:
Max Medvedev
2026-02-12 14:44:47 +00:00
committed by intellij-monorepo-bot
parent 074d1f664b
commit 61471dd875
3 changed files with 19 additions and 8 deletions
@@ -88,14 +88,11 @@ a:com.intellij.codeInsight.AutoPopupController
- sf:AUTO_POPUP_ON_FOCUS_GAINED:com.intellij.openapi.util.Key
- sf:NO_ADS:com.intellij.openapi.util.Key
- sf:SHOW_BOTTOM_PANEL_IN_LOOKUP_UI:com.intellij.openapi.util.Key
- <init>():V
- a:autoPopupMemberLookup(com.intellij.openapi.editor.Editor,com.intellij.codeInsight.completion.CompletionType,com.intellij.openapi.util.Condition):V
- a:autoPopupMemberLookup(com.intellij.openapi.editor.Editor,com.intellij.openapi.util.Condition):V
- a:autoPopupParameterInfo(com.intellij.openapi.editor.Editor,com.intellij.psi.PsiElement):V
- a:cancelAllRequests():V
- s:getInstance(com.intellij.openapi.project.Project):com.intellij.codeInsight.AutoPopupController
- a:scheduleAutoPopup(com.intellij.openapi.editor.Editor,com.intellij.codeInsight.completion.CompletionType,com.intellij.openapi.util.Condition):V
- a:waitForDelayedActions(J,java.util.concurrent.TimeUnit):V
a:com.intellij.codeInsight.TargetElementEvaluatorEx2
- com.intellij.codeInsight.TargetElementEvaluator
- <init>():V
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInsight;
@@ -10,6 +10,7 @@ import com.intellij.openapi.util.Key;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.util.concurrency.annotations.RequiresEdt;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.TestOnly;
@@ -106,13 +107,26 @@ public abstract class AutoPopupController {
@NotNull CompletionType completionType,
@Nullable Condition<? super PsiFile> condition);
/**
* Show the parameter info popup at the given element.
*
* @param editor editor to show the popup in
* @param highlightedElement element to show the popup at
*/
public abstract void autoPopupParameterInfo(@NotNull Editor editor, @Nullable PsiElement highlightedElement);
@ApiStatus.Internal
public abstract void cancelAllRequests();
public abstract void autoPopupParameterInfo(@NotNull Editor editor, @Nullable PsiElement highlightedMethod);
/** Use {@link com.intellij.testFramework.AutoPopupParameterInfoTestUtil#waitForAutoPopup} instead */
@ApiStatus.Internal
@TestOnly
public abstract void waitForDelayedActions(long timeout, @NotNull TimeUnit unit) throws TimeoutException;
@ApiStatus.Internal
protected AutoPopupController() {
}
//region Deprecated methods
/**
@@ -152,7 +152,7 @@ class AutoPopupControllerImpl extends AutoPopupController {
}
@Override
public void autoPopupParameterInfo(@NotNull Editor editor, @Nullable PsiElement highlightedMethod) {
public void autoPopupParameterInfo(@NotNull Editor editor, @Nullable PsiElement highlightedElement) {
if (PowerSaveMode.isEnabled()) return;
ThreadingAssertions.assertEventDispatchThread();
@@ -179,7 +179,7 @@ class AutoPopupControllerImpl extends AutoPopupController {
try {
PsiFile file1 = PsiDocumentManager.getInstance(myProject).getPsiFile(editor.getDocument());
if (file1 != null) {
ShowParameterInfoHandler.invoke(myProject, editor, file1, lbraceOffset, highlightedMethod, false,
ShowParameterInfoHandler.invoke(myProject, editor, file1, lbraceOffset, highlightedElement, false,
true, null);
}
}