IDEA-65583:

insert import when completing a class reference with existing generics
on tab, replace the generics, if any
This commit is contained in:
peter
2011-02-17 20:54:09 +01:00
parent 8f0160e68f
commit 1cc5e6339b
8 changed files with 61 additions and 7 deletions
@@ -0,0 +1,8 @@
import java.util.ArrayList;
import java.util.List;
public class Foo {
public static void main(String[] args) {
List<Integer> set = new ArrayLis<caret>t<Integer>();
}
}
@@ -0,0 +1,8 @@
import java.util.ArrayList;
import java.util.List;
public class Foo {
public static void main(String[] args) {
List<Integer> set = new ArrayList<Integer>(<caret>);
}
}
@@ -0,0 +1,5 @@
public class Foo {
public static void main(String[] args) {
Set<caret><Integer>
}
}
@@ -0,0 +1,7 @@
import java.util.Set;
public class Foo {
public static void main(String[] args) {
Set<caret><Integer>
}
}