mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CreateTypeParameterFromUsage: ignore qualified references: IDEA-192528
This commit is contained in:
+1
@@ -161,6 +161,7 @@ public class CreateTypeParameterFromUsageFix extends BaseIntentionAction {
|
||||
static Context from(@NotNull PsiJavaCodeReferenceElement element, boolean findFirstOnly) {
|
||||
if (!PsiUtil.isLanguageLevel5OrHigher(element)) return null;
|
||||
if (element.isQualified()) return null;
|
||||
if (element.getParent() instanceof PsiJavaCodeReferenceElement) return null;
|
||||
List<PsiNameIdentifierOwner> candidates = collectParentClassesAndMethodsUntilStatic(element, findFirstOnly);
|
||||
if (candidates.isEmpty()) return null;
|
||||
String name = element.getReferenceName();
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// "Create type parameter 'T'" "false"
|
||||
|
||||
class B extends fo<caret>o.Bar {}
|
||||
Reference in New Issue
Block a user