Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a plugin for Eclipse that makes automatic imports smarter? [closed]

The normal Organize Imports behavior of Eclipse can make some silly suggestions. For instance, despite using java.util.Collections in a good number of my classes, occasionally the edu.emory.mathcs.backport Collections class will be imported instead.

I have blocked some of these silly packages in the Java -> Appearance -> Type Filters section of the preferences, but if there were a plugin that can figure this out automatically it would be quite helpful.

like image 564
idle Avatar asked Nov 29 '11 19:11

idle


People also ask

What are Eclipse plugins?

The Eclipse platform which provides the foundation for the Eclipse IDE is composed of plug-ins and is designed to be extensible using additional plug-ins. Several hundreds of plug-ins are available. Each plug-in adds more functionality to Eclipse.

What is Eclipse plugin development?

The Eclipse PDE™ (Plug-in Development Environment) provides tools to create, develop, test, debug, build and deploy Eclipse plug-ins, fragments, features, update sites and RCP products.


1 Answers

There is a Plugin (Code Recommenders Developer Tools) which should priorize the classes you prefer based on statistics. So the entries in the dialog are ordered based on their using.

It is included in eclipse kepler, but also available for older versions.

http://www.eclipse.org/recommenders/

like image 103
helios Avatar answered Sep 16 '22 14:09

helios