mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
method chain completion: suggest chains for collection of elements
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
import java.jang.String;
|
||||
import java.util.*;
|
||||
|
||||
class PsiMethod {
|
||||
}
|
||||
|
||||
interface PsiClass {
|
||||
List<PsiMethod> getMethods();
|
||||
}
|
||||
|
||||
public class TestCompletion {
|
||||
|
||||
PsiClass c;
|
||||
|
||||
public void method() {
|
||||
Collection<PsiMethod> m = <caret>
|
||||
}
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
import java.util.*;
|
||||
|
||||
|
||||
public class TestIndex {
|
||||
|
||||
public void statMethod(PsiClass c) {
|
||||
c.getMethods();
|
||||
c.getMethods();
|
||||
c.getMethods();
|
||||
c.getMethods();
|
||||
c.getMethods();
|
||||
c.getMethods();
|
||||
c.getMethods();
|
||||
c.getMethods();
|
||||
}
|
||||
}
|
||||
|
||||
class PsiMethod {
|
||||
}
|
||||
|
||||
interface PsiClass {
|
||||
Collection<PsiMethod> getMethods();
|
||||
}
|
||||
Reference in New Issue
Block a user