Changing the Eclipse Type Changes from 3.4 to 3.5 - Customizable?

If I already have imported types, in Eclipse 3.4 I get specific classes by default, but in 3.5 I just get the interface for java.util.Collections . For example, by pressing ctrl + space here:

Map map = new ctrl + space

In 3.4, I suggest HashMap() , on 3.5 Map() (which then gets the default value for the new impl with templated templates).

For List , on 3.4 I am offered ArrayList() , but only on 3.5 List() .

Is it customizable in templates or similar?

+4
source share
2 answers

I’m not sure if it’s configurable, but I know that if you have one map created as a HashMap , the second will have a HashMap present in the "Content Support" list.

Map<Integer, String> m = new HashMap<Integer, String>();
Map<Integer, String> m2 = ctrl + space => HashMap

See All eclipse Galileo 3.5 JDT Tips and Tricks

+2
source

I ran into the same problem. The solution is Preferences -> Java -> Editor -> Content Assist -> Advanced - Make sure you select "Java suggestions." When you enable this, you should have a type clause on ctrl + space.

+2
source

All Articles