auto-import doesn't hide parameter info (PY-5764)

This commit is contained in:
Dmitry Jemerov
2012-03-02 16:45:42 +01:00
parent 8086e7b4d5
commit 2bc2ecc15d
5 changed files with 14 additions and 10 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -200,7 +200,7 @@ public abstract class ImportClassFixBase<T extends PsiElement & PsiReference> im
if (doShow && canImportHere) {
String hintText = ShowAutoImportPass.getMessage(classes.length > 1, classes[0].getQualifiedName());
if (!ApplicationManager.getApplication().isUnitTestMode() && !HintManager.getInstance().hasShownHintsThatWillHideByOtherHint()) {
if (!ApplicationManager.getApplication().isUnitTestMode() && !HintManager.getInstance().hasShownHintsThatWillHideByOtherHint(true)) {
HintManager.getInstance().showQuestionHint(editor, hintText, myRef.getTextOffset(),
myRef.getTextRange().getEndOffset(), action);
}