mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove doWhenFocusSettlesDown because introduce parameter seems to work without it
This commit is contained in:
+1
-7
@@ -50,7 +50,6 @@ import com.intellij.openapi.util.Pair;
|
||||
import com.intellij.openapi.util.Pass;
|
||||
import com.intellij.openapi.util.Ref;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.openapi.wm.IdeFocusManager;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.psi.codeStyle.JavaCodeStyleManager;
|
||||
import com.intellij.psi.codeStyle.SuggestedNameInfo;
|
||||
@@ -267,12 +266,7 @@ public class IntroduceParameterHandler extends IntroduceHandlerBase {
|
||||
|
||||
final PsiMethod methodToSearchFor = superMethod.isEnabled() && superMethod.isSelected()
|
||||
? methodToSearchIn.findDeepestSuperMethod() : methodToSearchIn;
|
||||
Runnable runnable = new Runnable() {
|
||||
public void run() {
|
||||
consumer.consume(methodToSearchIn, methodToSearchFor);
|
||||
}
|
||||
};
|
||||
IdeFocusManager.findInstance().doWhenFocusSettlesDown(runnable);
|
||||
consumer.consume(methodToSearchIn, methodToSearchFor);
|
||||
}
|
||||
}, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0)));
|
||||
myEnclosingMethodsPopup = JBPopupFactory.getInstance().createComponentPopupBuilder(panel, list)
|
||||
|
||||
Reference in New Issue
Block a user